Changeset 23


Ignore:
Timestamp:
Feb 4, 2010 3:29:48 PM (13 years ago)
Author:
toby
Message:

add a new sub directory based on OS and python ver for binary file(s)

Location:
trunk
Files:
4 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASII.py

    r22 r23  
    1515else:
    1616    import wxmpl as wxmpl
     17
     18# determine a binary path pased on the host OS and the python version
     19if sys.platform == "win32":
     20    bindir = 'binwin%d.%d' % sys.version_info[0:2]
     21elif sys.platform == "darwin":
     22    bindir = 'binmac%d.%d' % sys.version_info[0:2]
     23else:
     24    bindir = 'bin'
     25if ospath.exists(ospath.abspath(bindir)): sys.path.insert(0,ospath.abspath(bindir))
    1726import pylab
     27
    1828import GSASIIIO as G2IO
    1929import GSASIIcomp as G2cmp
Note: See TracChangeset for help on using the changeset viewer.