代码第一版

pull/8/head
2793660631@qq.com 2 months ago
parent 8d34db55d6
commit bcae26adb0

@ -0,0 +1,3 @@
"""
Config package initialization
"""

@ -99,11 +99,11 @@ def get_config():
env = os.environ.get("ENVIRONMENT", "development").lower()
if env == "production":
return ProductionConfig
return ProductionConfig()
elif env == "testing":
return TestingConfig
return TestingConfig()
else:
return DevelopmentConfig
return DevelopmentConfig()
# 导出当前配置

@ -7,6 +7,11 @@ import random
import threading
import signal
import argparse
# 添加项目根目录到Python路径
current_dir = os.path.dirname(os.path.abspath(__file__))
sys.path.append(current_dir)
from config.config import current_config as config
# 确保环境变量设置为启用模拟

Binary file not shown.
Loading…
Cancel
Save