source: trunk/GSASIIpath.py @ 65

Last change on this file since 65 was 65, checked in by vondreel, 15 years ago

remove all path setup code & replace with a simple import of GSASIIpath.

File size: 528 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
3import os.path as ospath
4import sys
5if sys.platform == "win32":
6    bindir = 'binwin%d.%d' % sys.version_info[0:2]
7elif sys.platform == "darwin":
8    bindir = 'binmac%d.%d' % sys.version_info[0:2]
9else:
10    bindir = 'bin'
11if ospath.exists(ospath.join(sys.path[0],bindir)) and ospath.join(sys.path[0],bindir) not in sys.path: 
12    sys.path.insert(0,ospath.join(sys.path[0],bindir))
Note: See TracBrowser for help on using the repository browser.