mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-12 11:29:48 +08:00
fix compatibility for Python 2.7, makedirs exsit_ok
This commit is contained in:
@@ -673,7 +673,7 @@ def prepare_dump_json_file_abs_path(project_mapping, tag_name):
|
||||
dump_file_name = "{}.{}.json".format(test_file_name, tag_name)
|
||||
|
||||
if not os.path.isdir(file_foder_path):
|
||||
os.makedirs(file_foder_path, exist_ok=True)
|
||||
os.makedirs(file_foder_path)
|
||||
|
||||
dumped_json_file_abs_path = os.path.join(file_foder_path, dump_file_name)
|
||||
return dumped_json_file_abs_path
|
||||
|
||||
Reference in New Issue
Block a user