fix compatibility for Python 2.7, makedirs exsit_ok

This commit is contained in:
debugtalk
2019-12-04 14:31:02 +08:00
parent 0c45f9b176
commit ecad6b1889

View File

@@ -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