diff --git a/ruoyi-fastapi-backend/utils/static_qa_service.py b/ruoyi-fastapi-backend/utils/static_qa_service.py index a341400..8576318 100644 --- a/ruoyi-fastapi-backend/utils/static_qa_service.py +++ b/ruoyi-fastapi-backend/utils/static_qa_service.py @@ -7,10 +7,8 @@ from .match_service import get_match_service class StaticQAService: def __init__(self, config_path: str = None): if config_path is None: - config_path = os.environ.get( - 'STATIC_QA_CONFIG_PATH', - os.path.join(os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))), 'config', 'static_qa.json') - ) + backend_path = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) + config_path = os.path.join(backend_path, 'config', 'static_qa.json') self.config_path = config_path self.match_service = get_match_service()