Skip to content
Snippets Groups Projects

FIX - Recreate folder if sphinx-rep already existed.

Merged Karim Ahmed requested to merge fix/sphix-rep_already_exists into master
3 unresolved threads
@@ -40,6 +40,10 @@ def natural_keys(text):
@@ -40,6 +40,10 @@ def natural_keys(text):
def combine_report(run_path, calibration):
def combine_report(run_path, calibration):
sphinx_path = "{}/sphinx_rep".format(path.abspath(run_path))
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)
makedirs(sphinx_path)
direntries = listdir(run_path)
direntries = listdir(run_path)
direntries.sort(key=natural_keys)
direntries.sort(key=natural_keys)
Loading