Skip to content

Commit

Permalink
Resolve a build failure on mounted filesystems
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Urban committed Dec 16, 2020
1 parent e671e8e commit 0b2adbe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gwsumm/plot/guardian/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import argparse
import os
import re
import shutil
import sys

from collections import OrderedDict
Expand Down Expand Up @@ -200,7 +201,8 @@ def main(args=None):
LOGGER.info("Processing:")
tab.process(nproc=args.nproc)
plotfile = tab.plots[0].outputfile
os.rename(plotfile, args.output_file)
shutil.copy(plotfile, args.output_file)
os.remove(plotfile)
LOGGER.info("Plot saved to {0.output_file}".format(args))

# crop and save archive
Expand Down

0 comments on commit 0b2adbe

Please sign in to comment.