Skip to content
Snippets Groups Projects
Commit 37f9f381 authored by Karim Ahmed's avatar Karim Ahmed
Browse files

Merge branch 'fix/sphix-rep_already_exists' into 'master'

FIX - Recreate folder if sphinx-rep already existed.

See merge request detectors/pycalibration!564
parents 969cd856 d880f019
No related branches found
No related tags found
1 merge request!564FIX - Recreate folder if sphinx-rep already existed.
......@@ -40,6 +40,10 @@ def natural_keys(text):
def combine_report(run_path, calibration):
sphinx_path = "{}/sphinx_rep".format(path.abspath(run_path))
# if the finalize job was preempted or requeued,
# while building the report.
if isdir(sphinx_path):
rmtree(sphinx_path)
makedirs(sphinx_path)
direntries = listdir(run_path)
direntries.sort(key=natural_keys)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment