部分移植

This commit is contained in:
2025-10-19 00:01:53 +08:00
parent e77210efc6
commit ace6197231
12 changed files with 122 additions and 108 deletions

View File

@@ -4,8 +4,8 @@ import toml
import typing
class ConfigFile:
def __init__(self, path: str):
self.path = pathlib.Path(path)
def __init__(self, path: pathlib.Path):
self.path = path
if not self.path.exists():
self.path.touch()
self.data = dict()