diff --git a/onec_codetemplate_parser/api.py b/onec_codetemplate_parser/api.py index d4d2716..ac47f8f 100644 --- a/onec_codetemplate_parser/api.py +++ b/onec_codetemplate_parser/api.py @@ -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): diff --git a/tests/test_01.py b/tests/test_core.py similarity index 100% rename from tests/test_01.py rename to tests/test_core.py