diff --git a/launcher/simc-launcher.in b/launcher/simc-launcher.in index d3b4003f1f36c3339e7b23251fab306cdfb302e7..a3dc3e6e19173ed1572d77c822d5c37db76310d9 100644 --- a/launcher/simc-launcher.in +++ b/launcher/simc-launcher.in @@ -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)