Commit 9fb03809 authored by Mario Chirinos's avatar Mario Chirinos

sorted

parent ca9d5998
...@@ -19,7 +19,7 @@ def main(argv): ...@@ -19,7 +19,7 @@ def main(argv):
else: else:
rootdir = argv[1] rootdir = argv[1]
with open(rootdir+"/"+datetime.datetime.today().strftime('%Y-%m-%d')+".log", "a") as logfile: with open(rootdir+"/"+datetime.datetime.today().strftime('%Y-%m-%d')+".log", "a") as logfile:
for path in glob.glob(f'{rootdir}/*/'): for path in sorted(glob.glob(f'{rootdir}/*/')):
if not os.path.exists(path+'settings.json'): if not os.path.exists(path+'settings.json'):
logfile.write("\t configuration file <"+path+"settings.json> not found.\n") logfile.write("\t configuration file <"+path+"settings.json> not found.\n")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment