settings file not found

parent 0dfc2d60
...@@ -21,7 +21,7 @@ def main(argv): ...@@ -21,7 +21,7 @@ def main(argv):
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 glob.glob(f'{rootdir}/*/'):
if not os.path.exists((path+'settings.json'): if not os.path.exists(path+'settings.json'):
ogfile.write("\t configuration file not found.\n") ogfile.write("\t configuration file not found.\n")
continue continue
with open(path+'settings.json') as json_file: with open(path+'settings.json') as json_file:
......
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