set PROJ_LIB and PROJ_DATA variables in the exe runtime hook. #1742

This commit is contained in:
davemfish 2025-01-22 09:29:12 -05:00
parent 6ec11c3861
commit b13e90ef52
1 changed files with 1 additions and 0 deletions

View File

@ -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.