From b889b0e85be83b2a2df52006fa4d78545a555d72 Mon Sep 17 00:00:00 2001 From: fabrice Date: Fri, 15 Mar 2019 15:11:16 +0000 Subject: [PATCH] Add 'fix_basemap.py' --- fix_basemap.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 fix_basemap.py diff --git a/fix_basemap.py b/fix_basemap.py new file mode 100644 index 0000000..105970b --- /dev/null +++ b/fix_basemap.py @@ -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 \ No newline at end of file