mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 23:42: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:
|
except:
|
||||||
pass
|
pass
|
||||||
elif getattr(sys, "frozen", None):
|
elif getattr(sys, "frozen", None):
|
||||||
os.environ['MATPLOTLIBDATA'] = os.path.join(
|
os.environ['MATPLOTLIBDATA'] = os.path.dirname(sys.argv[0])
|
||||||
os.path.dirname(sys.argv[0]),
|
|
||||||
"matplotlibdata")
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from matplotlib.figure import Figure
|
from matplotlib.figure import Figure
|
||||||
|
|
Loading…
Reference in a new issue