Add 'fix_basemap.py'

This commit is contained in:
fabrice 2019-03-15 16:43:18 +00:00
parent d9a00c3159
commit cb18ea7625

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