Changeset 33 for trunk/tests
- Timestamp:
- Mar 1, 2010 8:21:07 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/testGSASIIspc.py
r30 r33 3 3 import os 4 4 sys.path.append('..') 5 import os.path as ospath 6 # determine a binary path pased on the host OS and the python version, path is relative to 7 # location of this file 8 if sys.platform == "win32": 9 bindir = '../binwin%d.%d' % sys.version_info[0:2] 10 elif sys.platform == "darwin": 11 bindir = '../binmac%d.%d' % sys.version_info[0:2] 12 else: 13 bindir = '../bin' 14 if ospath.exists(ospath.join(sys.path[0],bindir)) and ospath.join(sys.path[0],bindir) not in sys.path: 15 sys.path.insert(0,ospath.join(sys.path[0],bindir)) 5 16 6 17 import numpy as np
Note: See TracChangeset
for help on using the changeset viewer.