refactor: unify env path

This commit is contained in:
InfinityPacer
2024-09-12 00:05:07 +08:00
parent 8b336cf3eb
commit 540f5eb77f
4 changed files with 24 additions and 18 deletions

View File

@@ -487,3 +487,10 @@ class SystemUtils:
return Path(sys.executable).parent / "config"
else:
return Path(__file__).parents[2] / "config"
@staticmethod
def get_env_path() -> Path:
"""
获取配置路径
"""
return SystemUtils.get_config_path() / "app.env"