Add 'fix_basemap.py'

This commit is contained in:
fabrice 2019-03-15 15:11:16 +00:00
parent e0176b899d
commit b889b0e85b

9
fix_basemap.py Normal file
View File

@ -0,0 +1,9 @@
import os
import conda
conda_file_dir = conda.__file__
conda_dir = conda_file_dir.split('lib')[0]
proj_lib = os.path.join(os.path.join(conda_dir, 'share'), 'proj')
os.environ["PROJ_LIB"] = proj_lib
from mpl_toolkits.basemap import Basemap