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