fix: parse config name

This commit is contained in:
debugtalk
2020-05-22 13:13:46 +08:00
parent 9a5bfa1828
commit 988e7e6e78
2 changed files with 14 additions and 8 deletions

View File

@@ -410,6 +410,11 @@ def load_project_meta(test_path: Text) -> ProjectMeta:
environments and debugtalk.py functions.
"""
project_meta = ProjectMeta()
if not test_path:
return project_meta
if test_path in project_meta_cached_mapping:
return project_meta_cached_mapping[test_path]
@@ -417,8 +422,6 @@ def load_project_meta(test_path: Text) -> ProjectMeta:
test_path
)
project_meta = ProjectMeta()
# load .env file
# NOTICE:
# environment variable maybe loaded in debugtalk.py