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 |
---|
3 | import os.path as ospath |
---|
4 | import sys |
---|
5 | if sys.platform == "win32": |
---|
6 | bindir = 'binwin%d.%d' % sys.version_info[0:2] |
---|
7 | elif sys.platform == "darwin": |
---|
8 | bindir = 'binmac%d.%d' % sys.version_info[0:2] |
---|
9 | else: |
---|
10 | bindir = 'bin' |
---|
11 | if 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.