Update app import path (#275)

This commit is contained in:
WONJUN PARK 2023-01-17 15:59:04 +09:00 committed by GitHub
parent acb2a16d5a
commit 40801186ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -361,6 +361,7 @@ def get_app() -> ModuleType:
"""
config = get_config()
module = ".".join([config.app_name, config.app_name])
sys.path.insert(0, os.getcwd())
app = __import__(module, fromlist=(constants.APP_VAR,))
return app