From cd15746a48efc6535d2109ec18d577adf0f10644 Mon Sep 17 00:00:00 2001
From: Marco Biasini <marco.biasini@unibas.ch>
Date: Mon, 18 Mar 2013 14:06:00 +0100
Subject: [PATCH] fixup sys.path for Python 2.7 on Mountain Lion

Up until Python 2.6, MacOS X systems were detected as 32 bit
platforms. Now, they are detected as 64bit systems. This
caused sys.path to be wrong and the ost module could not
be imported
---
 scripts/ost_startup.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/ost_startup.py b/scripts/ost_startup.py
index 92e210ff6..6671b5164 100644
--- a/scripts/ost_startup.py
+++ b/scripts/ost_startup.py
@@ -28,7 +28,7 @@ parser.disable_interspersed_args()
 
 _site_packs='python%d.%d/site-packages' % sys.version_info[0:2]
 _base_dir=os.getenv('DNG_ROOT')
-if platform.machine()=='x86_64':
+if platform.machine()=='x86_64' and platform.system()!='Darwin' :
   sys.path.insert(0, os.path.join(_base_dir, 'lib64', _site_packs))
 else:
   sys.path.insert(0,os.path.join(_base_dir, 'lib', _site_packs))
-- 
GitLab