Skip to content

Commit

Permalink
docs(config):新增注释
Browse files Browse the repository at this point in the history
  • Loading branch information
Akimio521 committed Jul 8, 2024
1 parent 3662594 commit 1f9c3af
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions app/core/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,23 @@ def __init_logging(self):

@property
def BASE_DIR(self) -> Path:
"""
后端程序基础路径 AutoFilm/app
"""
return Path(__file__).parents[2]

@property
def CONFIG_DIR(self) -> Path:
"""
配置文件路径
"""
return self.BASE_DIR / "config"

@property
def CONFIG(self) -> Path:
"""
配置文件
"""
return self.CONFIG_DIR / "config.yaml"

@property
Expand Down

0 comments on commit 1f9c3af

Please sign in to comment.