Changeset 3677
- Timestamp:
- Oct 17, 2018 12:45:38 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/makeBat.py
r3209 r3677 39 39 @echo ======================================================================== 40 40 @ 41 {:s} {:s} "%~1"41 {:s}{:s} {:s} "%~1" 42 42 @REM To keep the window from disappearing with any error messages 43 43 pause … … 62 62 fp.write("@REM created by run of bootstrap.py on {:%d %b %Y %H:%M}\n".format( 63 63 datetime.datetime.now())) 64 activate = "call "+os.path.join(os.path.split(pythonexe)[0],'Scripts','activate')+'\n' 65 if os.path.exists(activate): 66 print('adding activate to .bat file') 67 else: 68 print('activate not found') 69 activate = '' 64 70 pexe = pythonexe 65 71 if ' ' in pythonexe: pexe = '"'+pythonexe+'"' … … 71 77 #if os.path.exists(mdir): 72 78 # fp.write('@path={};%path%\n'.format(mdir)) 73 fp.write(Script.format( pexe,G2s))79 fp.write(Script.format(activate,pexe,G2s)) 74 80 fp.close() 75 81 print('\nCreated GSAS-II batch file RunGSASII.bat in '+gsaspath)
Note: See TracChangeset
for help on using the changeset viewer.