From c9de0af102e9c5da1772b28fa27a7c7f962dcf8c Mon Sep 17 00:00:00 2001 From: Vladimir Elistratov Date: Thu, 24 Jan 2019 22:29:06 +0300 Subject: [PATCH] datadir.py --- .../binaries/linux_64_37/site-packages/pyproj/datadir.py | 7 ++++++- .../binaries/osx_64_37/site-packages/pyproj/datadir.py | 7 ++++++- .../binaries/windows_64_37/site-packages/pyproj/datadir.py | 7 ++++++- 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/dependencies/binaries/linux_64_37/site-packages/pyproj/datadir.py b/dependencies/binaries/linux_64_37/site-packages/pyproj/datadir.py index 50ec5c6..f532cf2 100644 --- a/dependencies/binaries/linux_64_37/site-packages/pyproj/datadir.py +++ b/dependencies/binaries/linux_64_37/site-packages/pyproj/datadir.py @@ -1 +1,6 @@ -import os; pyproj_datadir = os.environ.get('PROJ_LIB', '') \ No newline at end of file +import os + +if 'PROJ_DIR' in os.environ: + pyproj_datadir = os.environ['PROJ_DIR'] +else: + pyproj_datadir = os.sep.join([os.path.dirname(__file__), 'data']) diff --git a/dependencies/binaries/osx_64_37/site-packages/pyproj/datadir.py b/dependencies/binaries/osx_64_37/site-packages/pyproj/datadir.py index 50ec5c6..f532cf2 100644 --- a/dependencies/binaries/osx_64_37/site-packages/pyproj/datadir.py +++ b/dependencies/binaries/osx_64_37/site-packages/pyproj/datadir.py @@ -1 +1,6 @@ -import os; pyproj_datadir = os.environ.get('PROJ_LIB', '') \ No newline at end of file +import os + +if 'PROJ_DIR' in os.environ: + pyproj_datadir = os.environ['PROJ_DIR'] +else: + pyproj_datadir = os.sep.join([os.path.dirname(__file__), 'data']) diff --git a/dependencies/binaries/windows_64_37/site-packages/pyproj/datadir.py b/dependencies/binaries/windows_64_37/site-packages/pyproj/datadir.py index 50ec5c6..f532cf2 100644 --- a/dependencies/binaries/windows_64_37/site-packages/pyproj/datadir.py +++ b/dependencies/binaries/windows_64_37/site-packages/pyproj/datadir.py @@ -1 +1,6 @@ -import os; pyproj_datadir = os.environ.get('PROJ_LIB', '') \ No newline at end of file +import os + +if 'PROJ_DIR' in os.environ: + pyproj_datadir = os.environ['PROJ_DIR'] +else: + pyproj_datadir = os.sep.join([os.path.dirname(__file__), 'data'])