diff --git a/bin/init_data.py b/bin/init_data.py index 1bfe295..cbfb0f4 100644 --- a/bin/init_data.py +++ b/bin/init_data.py @@ -89,10 +89,8 @@ SDLC_PROBLEM_TYPES = [ async def init_data(demo=False): - config_file = os.path.join(ROOT_DIR, 'conf', 'config.json') - if not os.path.exists(config_file): - config_file = os.path.join(ROOT_DIR, '..', 'conf', 'config.json') - config = getConfig(config_file, NS={'workdir': ROOT_DIR, 'ProgramPath': ProgramPath()}) + # getConfig 接收应用根目录(内部拼接 conf/config.json),非 config 文件路径 + config = getConfig(ROOT_DIR, NS={'workdir': ROOT_DIR, 'ProgramPath': ProgramPath()}) DBPools(config.databases) initEnv() env = ServerEnv()