File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3333
3434setuptools .setup (
3535 name = "admin_scripts" ,
36- version = "0.6.7 " ,
36+ version = "0.6.8 " ,
3737 author = "Hive Solutions Lda." ,
3838 author_email = "development@hive.pt" ,
3939 description = "Administration Scripts" ,
Original file line number Diff line number Diff line change @@ -100,9 +100,17 @@ def join_files(file_path):
100100 # sets the default target directories
101101 target_directories = ("." ,)
102102
103+ # in case theres an order defined, uses the order to iterate
104+ # over the files, otherwise uses the default iteration
105+ if "$order" in files_map :
106+ order = files_map .pop ("$order" )
107+ files_entries = [(file_key , files_map [file_key ]) for file_key in order ]
108+ else :
109+ files_entries = files_map .items ()
110+
103111 # iterates over all the files (composition of joined files)
104- # from the files map
105- for file_key , file_value in files_map . items () :
112+ # from the files map, respects `$order` if defined
113+ for file_key , file_value in files_entries :
106114 # creates the string buffer for temporary
107115 # file holding, this is bytes based
108116 string_buffer = legacy .BytesIO ()
You can’t perform that action at this time.
0 commit comments