add time of exec in file path to distinguish between multiple rounds

This commit is contained in:
HappyZ 2018-02-01 11:03:08 -06:00
parent 7a0a4dbc48
commit bd4a18ac26
1 changed files with 5 additions and 0 deletions

View File

@ -206,6 +206,11 @@ def main():
except Exception as e:
print(str(e))
sys.exit()
args['time_of_exec'] = int(time.time())
# rename file path by adding time of exec
if args['filepath']:
fp, ext = os.path.splitext(args['filepath'])
args['filepath'] = "{0}_{1}{2}".format(fp, args['time_of_exec'], ext)
wrapper(args)