You've already forked onec_codetemplate_parser
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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user