diff --git a/gui/graphFrame.py b/gui/graphFrame.py index dab983122..96472812a 100644 --- a/gui/graphFrame.py +++ b/gui/graphFrame.py @@ -42,7 +42,12 @@ class GraphFrame(wx.Frame): 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