Skip to content
Snippets Groups Projects

set matplotlib cache directory

Merged Cort Posnansky requested to merge master-matplotlib-lockfile into master
All threads resolved!
1 file
+ 1
6
Compare changes
  • Side-by-side
  • Inline
import os
import sys
import warnings
if "matplotlib" in sys.modules:
warnings.warn("matplotlib is imported before gstlal.plots. This may cause lockfile errors.")
# set matplotlib cache location to tmp directory
# set matplotlib cache location to local tmp directory
if os.getenv("_CONDOR_SCRATCH_DIR"):
os.environ['MPLCONFIGDIR'] = os.getenv("_CONDOR_SCRATCH_DIR")
else:
Loading