set PROJ_LIB and PROJ_DATA variables in the exe runtime hook. #1742
This commit is contained in:
parent
6ec11c3861
commit
b13e90ef52
|
@ -3,6 +3,7 @@ import platform
|
|||
import sys
|
||||
|
||||
os.environ['PROJ_LIB'] = os.path.join(sys._MEIPASS, 'proj')
|
||||
os.environ['PROJ_DATA'] = os.path.join(sys._MEIPASS, 'proj')
|
||||
|
||||
if platform.system() == 'Darwin':
|
||||
# Rtree will look in this directory first for libspatialindex_c.dylib.
|
||||
|
|
Loading…
Reference in New Issue