Skip to content

Commit

Permalink
make app_config a dict
Browse files Browse the repository at this point in the history
  • Loading branch information
jokester committed Apr 22, 2024
1 parent dca871d commit d397144
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,12 @@
from app.utils.logging import configure_logger, logger

from .apis import register_apis
import app.config as app_config
import app.config as _app_config

app_config = {
k: getattr(_app_config, k)
for k in dir(_app_config) if not k.startswith("_")
}

# 基本路径
APP_PATH = os.path.abspath(os.path.dirname(__file__))
Expand Down

0 comments on commit d397144

Please sign in to comment.