Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1696792 commit af6ce2eCopy full SHA for af6ce2e
lib/matplotlib/__init__.py
@@ -349,7 +349,7 @@ def _get_data_path():
349
if os.path.isdir(path): return path
350
351
# py2exe zips pure python, so still need special check
352
- if (sys.platform=='win32' or sys.platform=='darwin') and sys.frozen:
+ if getattr(sys,'frozen',None):
353
path = os.path.join(os.path.split(sys.path[0])[0], 'matplotlibdata')
354
355
else:
0 commit comments