Skip to content

Commit

Permalink
set PROJ_LIB and PROJ_DATA variables in the exe runtime hook. natcap#…
Browse files Browse the repository at this point in the history
  • Loading branch information
davemfish committed Jan 22, 2025
1 parent 6ec11c3 commit b13e90e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions exe/hooks/rthook.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
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.
Expand Down

0 comments on commit b13e90e

Please sign in to comment.