1
0
mirror of https://github.com/240596448/onec_codetemplate_parser.git synced 2025-11-23 21:34:39 +02:00

fix: путь в текст

This commit is contained in:
Vladimir Nadulich
2025-10-31 22:28:51 +03:00
parent acf8ac5cb5
commit febdeb11d1
2 changed files with 2 additions and 1 deletions

View File

@@ -5,7 +5,8 @@ from .core import Root, parser
def parse_to_src(path: str, src: str):
"""Парсит шаблон 1С-файла и сохраняет структуру файлов в папку"""
root = parser(path)
text = Path(path).read_text(encoding='utf-8-sig')
root = parser(text)
root.to_files(src)
def render_from_src(src: str, path: str):