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
ini
This commit is contained in:
@@ -22,7 +22,7 @@ class LeafRepository():
|
|||||||
def save(self, path: str, position: int):
|
def save(self, path: str, position: int):
|
||||||
"""Записывает элемент в файл"""
|
"""Записывает элемент в файл"""
|
||||||
safe_name = safe_filename(self.name)
|
safe_name = safe_filename(self.name)
|
||||||
file_name = f"{position:03d}.0_{safe_name}.txt"
|
file_name = f"{position:03d}.0_{safe_name}.ini"
|
||||||
leaf_path = Path(path) / file_name
|
leaf_path = Path(path) / file_name
|
||||||
self.path = str(leaf_path)
|
self.path = str(leaf_path)
|
||||||
|
|
||||||
@@ -56,7 +56,7 @@ class GroupRepository():
|
|||||||
@staticmethod
|
@staticmethod
|
||||||
def metafile() -> str:
|
def metafile() -> str:
|
||||||
"""Возвращает имя служебного файла с данными группы"""
|
"""Возвращает имя служебного файла с данными группы"""
|
||||||
return ".group_data"
|
return ".group_data.ini"
|
||||||
def group_data(self) -> Path:
|
def group_data(self) -> Path:
|
||||||
"""Возвращает путь к файлу с данными группы"""
|
"""Возвращает путь к файлу с данными группы"""
|
||||||
return Path(self.path) / self.metafile()
|
return Path(self.path) / self.metafile()
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "onec_codetemplate_parser"
|
name = "onec_codetemplate_parser"
|
||||||
version = "1.0.1"
|
version = "1.0.2"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"typer>=0.20.0"
|
"typer>=0.20.0"
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user