Skip to content
Snippets Groups Projects
Commit cd15746a authored by Marco Biasini's avatar Marco Biasini
Browse files

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
parent 60ca4ecd
No related merge requests found
......@@ -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))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment