mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-06-06 07:59:53 +08:00
refactor: unify env path
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user