File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -81,15 +81,16 @@ def list_config_files(base_dir, prefix):
8181 output_base = source_dir
8282 file_prefix = self .config_options .config_prefix
8383
84- # the full path of output directory
85- output_name = "%s_%s" % (file_prefix , self .config_options .alias )
86- output_dir = os .path .join (output_base , output_name )
87-
8884 # prepare output directory
89- if not fileutils .build_full_output_dir ( basedir = output_dir , subdir = self . config_dir ):
85+ if not fileutils .create_dir ( output_base ):
9086 logging .fatal ("Failed to prepare output dir." )
9187 return
9288
89+ # the full path of output directory
90+ output_name = "%s_%s" % (file_prefix , self .config_options .alias )
91+ output_dir = fileutils .build_full_output_dir (
92+ basedir = os .path .join (output_base , output_name ), subdir = self .config_dir )
93+
9394 file_list = list_config_files (source_dir , file_prefix )
9495 for file in file_list :
9596 if output_name in file :
You can’t perform that action at this time.
0 commit comments