Changeset 4237


Ignore:
Timestamp:
Jan 8, 2020 10:02:37 AM (22 months ago)
Author:
vondreele
Message:

simplify rmcprofile.bat

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIphsGUI.py

    r4236 r4237  
    48104810            pName = generalData['Name'].replace(' ','_')
    48114811            batch = open('runrmc.bat','w')
    4812             batch.write('ECHO OFF\n')
    4813             batch.write('::PATH=%PATH%;'+rmcexe+'\n')
    4814             batch.write('SET RMCPROFILE_DIR='+G2frame.dirname+'\n')
    4815             batch.write('SET RMCPROFILE_DRIVE=%~d1\n')
    4816             batch.write('::PATH=%PATH%;%RMCPROFILE_DIR%\exe\n')
    4817             batch.write('PATH=%RMCPROFILE_DIR%\exe;%PATH%\n')
    4818             batch.write('PATH\n')
    48194812            batch.write('Title RMCProfile\n')
    48204813            batch.write(rmcexe+'\\rmcprofile.exe '+pName+'\n')
     
    48224815            batch.close()
    48234816            sb.Popen('runrmc.bat',creationflags=sb.CREATE_NEW_CONSOLE)
    4824 
    4825 #            dlg = wx.FileDialog(G2frame, 'Find rmcprofile.bat file to execute',
    4826 #                wildcard='RMCProfile (rmcprofile.bat)|*.bat',style=wx.FD_CHANGE_DIR)
    4827 #            try:
    4828 #                if dlg.ShowModal() == wx.ID_OK:
    4829 #                    pass
    4830 #                else:
    4831 #                    return
    4832 #            finally:
    4833 #                dlg.Destroy()
    48344817           
    48354818    def OnViewRMC(event):
Note: See TracChangeset for help on using the changeset viewer.