mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 15:32:23 -04:00
change location of matplotlibrc file in frozen distrib
This commit is contained in:
parent
d8ba9e1987
commit
3106ecd80d
1 changed files with 1 additions and 3 deletions
|
@ -39,9 +39,7 @@ if sys.platform.startswith("darwin"):
|
|||
except:
|
||||
pass
|
||||
elif getattr(sys, "frozen", None):
|
||||
os.environ['MATPLOTLIBDATA'] = os.path.join(
|
||||
os.path.dirname(sys.argv[0]),
|
||||
"matplotlibdata")
|
||||
os.environ['MATPLOTLIBDATA'] = os.path.dirname(sys.argv[0])
|
||||
|
||||
try:
|
||||
from matplotlib.figure import Figure
|
||||
|
|
Loading…
Reference in a new issue