From 06eb263c668bb76332346e42a7b3244fdfd49310 Mon Sep 17 00:00:00 2001 From: Vincent Mora <vincent.mora@oslandia.com> Date: Fri, 7 Apr 2017 08:34:18 +0200 Subject: [PATCH] add path tho find ogr2ogr on max manual integartion of #60 --- versioning.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/versioning.py b/versioning.py index 3b8cd39..964501c 100644 --- a/versioning.py +++ b/versioning.py @@ -25,6 +25,10 @@ if iswin: sys.stdout = open(os.devnull, 'w') +gdal_mac_path = "/Library/Frameworks/GDAL.framework/Programs" +if any(platform.mac_ver()) and gdal_mac_path not in os.environ["PATH"]: + os.environ["PATH"] += ":"+gdal_mac_path + def os_info(): os_type = platform.system() if os_type == "Linux":