Skip to content

Commit ecd102b

Browse files
committed
Replace default definition of basemap_datadir
1 parent a1204c8 commit ecd102b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/mpl_toolkits/basemap/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@
6161
if not os.path.isdir(basemap_datadir):
6262
raise RuntimeError('Path in environment BASEMAPDATA not a directory')
6363
else:
64-
basemap_datadir = os.sep.join([os.path.dirname(__file__), 'data'])
64+
from mpl_toolkits import basemap_data
65+
basemap_datadir = os.path.dirname(basemap_data.__file__)
6566

6667
__version__ = '1.2.2+dev'
6768

0 commit comments

Comments
 (0)