Changeset 33 for trunk/tests


Ignore:
Timestamp:
Mar 1, 2010 8:21:07 PM (12 years ago)
Author:
toby
Message:

fix up package paths

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/testGSASIIspc.py

    r30 r33  
    33import os
    44sys.path.append('..')
     5import 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
     8if sys.platform == "win32":
     9    bindir = '../binwin%d.%d' % sys.version_info[0:2]
     10elif sys.platform == "darwin":
     11    bindir = '../binmac%d.%d' % sys.version_info[0:2]
     12else:
     13    bindir = '../bin'
     14if 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))
    516
    617import numpy as np
Note: See TracChangeset for help on using the changeset viewer.