File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -21,8 +21,11 @@ def setUp(self):
21
21
self .json_reader = dict_parser .DictReader (show_warnings = False )
22
22
23
23
dir_name = os .path .basename (os .path .splitext (__file__ )[0 ])
24
- tmp_dir_path = os .path .join (tempfile .gettempdir (), "odml_test" , dir_name )
24
+ tmp_base_path = os .path .join (tempfile .gettempdir (), "odml_test" )
25
+ if not os .path .exists (tmp_base_path ):
26
+ os .mkdir (tmp_base_path )
25
27
28
+ tmp_dir_path = os .path .join (tmp_base_path , dir_name )
26
29
if not os .path .exists (tmp_dir_path ):
27
30
os .mkdir (tmp_dir_path )
28
31
Original file line number Diff line number Diff line change @@ -21,8 +21,11 @@ def setUp(self):
21
21
self .yaml_reader = dict_parser .DictReader (show_warnings = False )
22
22
23
23
dir_name = os .path .basename (os .path .splitext (__file__ )[0 ])
24
- tmp_dir_path = os .path .join (tempfile .gettempdir (), "odml_test" , dir_name )
24
+ tmp_base_path = os .path .join (tempfile .gettempdir (), "odml_test" )
25
+ if not os .path .exists (tmp_base_path ):
26
+ os .mkdir (tmp_base_path )
25
27
28
+ tmp_dir_path = os .path .join (tmp_base_path , dir_name )
26
29
if not os .path .exists (tmp_dir_path ):
27
30
os .mkdir (tmp_dir_path )
28
31
You can’t perform that action at this time.
0 commit comments