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
1 file
+ 4
1
Compare changes
  • Side-by-side
  • Inline
@@ -40,7 +40,10 @@ def natural_keys(text):
def combine_report(run_path, calibration):
sphinx_path = "{}/sphinx_rep".format(path.abspath(run_path))
makedirs(sphinx_path, exist_ok=True)
# if the finalize job was preempted while building the report.
if isdir(sphinx_path):
rmtree(sphinx_path)
makedirs(sphinx_path)
direntries = listdir(run_path)
direntries.sort(key=natural_keys)
Loading