Skip to content
Snippets Groups Projects
Commit fb57a33f authored by Sylvester Joosten's avatar Sylvester Joosten
Browse files

make sure logfile does not just append, but start a new file for a new run

parent 4940e538
No related branches found
No related tags found
No related merge requests found
......@@ -76,6 +76,10 @@ with tempfile.TemporaryDirectory() as tmpdir:
print(' - Linking output directories...')
os.symlink(output_dir, tmp_output_dir)
os.symlink(output_dir, tmp_worksim_dir)
# also cleanup logfile if needed
logfile = '{outdir}/{conf}.log'.format(outdir=output_dir, conf=tmp_conf_name)
if os.path.exists(logfile):
os.remove(logfile)
print(' - Linking input file...')
os.symlink(data_path, tmp_data_path)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment