修改项目目录
This commit is contained in:
parent
a04cfcabce
commit
e0acf3d18d
@ -7,8 +7,10 @@ from .match_service import get_match_service
|
||||
class StaticQAService:
|
||||
def __init__(self, config_path: str = None):
|
||||
if config_path is None:
|
||||
current_dir = os.path.dirname(os.path.abspath(__file__))
|
||||
config_path = os.path.join(os.path.dirname(os.path.dirname(current_dir)), 'config', 'static_qa.json')
|
||||
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')
|
||||
)
|
||||
|
||||
self.config_path = config_path
|
||||
self.match_service = get_match_service()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user