Changeset 2923
- Timestamp:
- Jul 8, 2017 3:12:16 PM (6 years ago)
- Location:
- branch/2frame
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branch/2frame/GSASIIctrlGUI.py
r2921 r2923 3746 3746 ''' 3747 3747 testbranch = '/branch/2frame' 3748 if GSASIIpath.svnTestBranch():3748 if not GSASIIpath.svnTestBranch(): 3749 3749 dlg = wx.MessageDialog(self.frame, 3750 'Switching from test to standardGSAS-II version',3750 'Switching to test GSAS-II version', 3751 3751 'Confirm Switch', 3752 3752 wx.OK|wx.CANCEL) -
branch/2frame/GSASIIpath.py
r2922 r2923 391 391 if proxycmds: cmd += proxycmds 392 392 if verbose: print(u"Loading files to "+fpath+u"\n from "+URL) 393 print cmd394 393 s = subprocess.Popen(cmd,stdout=subprocess.PIPE,stderr=subprocess.PIPE) 395 394 out,err = s.communicate() … … 763 762 print("Update to current version") 764 763 svnUpdateDir(loc) 765 print sys.executable 764 ex = sys.executable 765 if sys.platform == "darwin": # mac requires pythonw which is not always reported as sys.executable 766 if os.path.exists(ex+'w'): ex += 'w' 766 767 if project: 767 768 print("Restart GSAS-II with project file "+str(project)) 768 subprocess.Popen([ sys.executable,os.path.join(loc,'GSASII.py'),project])769 subprocess.Popen([ex,os.path.join(loc,'GSASII.py'),project]) 769 770 else: 770 771 print("Restart GSAS-II without a project file ") 771 subprocess.Popen([ sys.executable,os.path.join(loc,'GSASII.py')])772 subprocess.Popen([ex,os.path.join(loc,'GSASII.py')]) 772 773 print 'exiting update process' 773 774 sys.exit()
Note: See TracChangeset
for help on using the changeset viewer.