Changeset 1901 for trunk/makeBat.py


Ignore:
Timestamp:
Jun 19, 2015 5:19:19 PM (6 years ago)
Author:
toby
Message:

allow makeBat to be run from inside Canopy

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/makeBat.py

    r1859 r1901  
    3434G2icon = os.path.join(gsaspath,'gsas2.ico')
    3535pythonexe = os.path.realpath(sys.executable)
     36# Bob reports a problem using pythonw.exe w/Canopy on Windows, so change that if used
     37if pythonexe.lower().endswith('pythonw.exe'):
     38    print "  using python.exe rather than "+pythonexe
     39    pythonexe = os.path.join(os.path.split(pythonexe)[0],'python.exe')
     40    print "  now pythonexe="+pythonexe
    3641# create a GSAS-II script
    3742fp = open(os.path.join(G2bat),'w')
Note: See TracChangeset for help on using the changeset viewer.