Skip to content

Commit

Permalink
Windows skel has an issue with this, so if there is an issue, use def…
Browse files Browse the repository at this point in the history
…ault path to cache file.
  • Loading branch information
blitzmann committed Aug 21, 2015
1 parent cbedf03 commit cda8dd4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion gui/graphFrame.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,12 @@ def __init__(self, parent, style=wx.DEFAULT_FRAME_STYLE | wx.NO_FULL_REPAINT_ON_

try:
import matplotlib as mpl
cache_dir = mpl._get_cachedir()

try:
cache_dir = mpl._get_cachedir()
except:
cache_dir = unicode(os.path.expanduser(os.path.join("~", ".matplotlib")))

cache_file = os.path.join(cache_dir, 'fontList.cache')
if os.access(cache_dir, os.W_OK | os.X_OK) and os.path.isfile(cache_file):
# remove matplotlib font cache, see #234
Expand Down

0 comments on commit cda8dd4

Please sign in to comment.