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.
2 parents e353bf2 + f8d7ba3 commit adb9e07Copy full SHA for adb9e07
lib/mpl_toolkits/basemap/pyproj.py
@@ -235,7 +235,11 @@
235
"sphere": {'a':6370997.0,'b':6370997.0,'description':"Normal Sphere"},
236
}
237
238
-pyproj_datadir = os.sep.join([os.path.dirname(__file__), 'data'])
+if 'BASEMAPDATA' in os.environ:
239
+ pyproj_datadir = os.environ['BASEMAPDATA']
240
+else:
241
+ pyproj_datadir = os.sep.join([os.path.dirname(__file__), 'data'])
242
+
243
if not os.path.isdir(pyproj_datadir):
244
msg="proj data directory not found. Expecting it at: %s"%pyproj_datadir
245
raise IOError(msg)
0 commit comments