source: trunk/GSASIIpath.py @ 67

Last change on this file since 67 was 67, checked in by vondreel, 14 years ago
File size: 605 bytes
Line 
1# determine a binary path for the pyd files based on the host OS and the python version, 
2# path is relative to location of this file
3#this must be imported before anything that imports any pyd file for GSASII
4import os.path as ospath
5import sys
6if sys.platform == "win32":
7    bindir = 'binwin%d.%d' % sys.version_info[0:2]
8elif sys.platform == "darwin":
9    bindir = 'binmac%d.%d' % sys.version_info[0:2]
10else:
11    bindir = 'bin'
12if ospath.exists(ospath.join(sys.path[0],bindir)) and ospath.join(sys.path[0],bindir) not in sys.path: 
13    sys.path.insert(0,ospath.join(sys.path[0],bindir))
Note: See TracBrowser for help on using the repository browser.