Commit d34abfc2 authored by Charlie Hoy's avatar Charlie Hoy
Browse files

change name of additional plot if the same plot already exists

parent 0734e3b1
Pipeline #477703 failed with stages
in 129 minutes and 5 seconds
......@@ -1163,7 +1163,10 @@ class _Input(object):
try:
shutil.copyfile(_plot, _filename)
except shutil.SameFileError:
pass
_filename = os.path.join(
self.webdir, "plots", key + "_" + Path(_plot).name
)
shutil.copyfile(_plot, _filename)
self._existing_plot[key] = _filename
for key in keys_to_remove:
del self._existing_plot[key]
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment