mirror of
https://github.com/ankitects/anki.git
synced 2025-11-13 16:17:13 -05:00
don't define MATPLOTLIBDATA on osx
This commit is contained in:
parent
faea67e14b
commit
ebac830248
1 changed files with 6 additions and 1 deletions
|
|
@ -33,7 +33,12 @@ firstC = "#b380ff"
|
||||||
intervC = "#80e5ff"
|
intervC = "#80e5ff"
|
||||||
|
|
||||||
# support frozen distribs
|
# support frozen distribs
|
||||||
if getattr(sys, "frozen", None):
|
if sys.platform.startswith("darwin"):
|
||||||
|
try:
|
||||||
|
del os.environ['MATPLOTLIBDATA']
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
elif getattr(sys, "frozen", None):
|
||||||
os.environ['MATPLOTLIBDATA'] = os.path.join(
|
os.environ['MATPLOTLIBDATA'] = os.path.join(
|
||||||
os.path.dirname(sys.argv[0]),
|
os.path.dirname(sys.argv[0]),
|
||||||
"matplotlibdata")
|
"matplotlibdata")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue