File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,8 +21,11 @@ def setUp(self):
2121 self .json_reader = dict_parser .DictReader (show_warnings = False )
2222
2323 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 )
2527
28+ tmp_dir_path = os .path .join (tmp_base_path , dir_name )
2629 if not os .path .exists (tmp_dir_path ):
2730 os .mkdir (tmp_dir_path )
2831
Original file line number Diff line number Diff line change @@ -21,8 +21,11 @@ def setUp(self):
2121 self .yaml_reader = dict_parser .DictReader (show_warnings = False )
2222
2323 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 )
2527
28+ tmp_dir_path = os .path .join (tmp_base_path , dir_name )
2629 if not os .path .exists (tmp_dir_path ):
2730 os .mkdir (tmp_dir_path )
2831
You can’t perform that action at this time.
0 commit comments