Changeset 3034
- Timestamp:
- Aug 31, 2017 10:54:11 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIdataGUI.py
r3023 r3034 2322 2322 def OnSaveLog(event): 2323 2323 import cPickle 2324 defnam = os.path.splitext( 2325 os.path.split(self.GSASprojectfile)[1] 2326 )[0]+u'.gcmd' 2324 defnam = os.path.splitext(os.path.split(self.GSASprojectfile)[1])[0]+'.gcmd' 2327 2325 dlg = wx.FileDialog(self, 2328 2326 'Choose an file to save past actions', '.', defnam, … … 2334 2332 filename = dlg.GetPath() 2335 2333 # make sure extension is correct 2336 filename = os.path.splitext(filename)[0]+ u'.gcmd'2334 filename = os.path.splitext(filename)[0]+'.gcmd' 2337 2335 else: 2338 2336 filename = None … … 2354 2352 import cPickle 2355 2353 defnam = os.path.splitext( 2356 os.path.split(self.GSASprojectfile)[1] 2357 )[0]+u'.gcmd' 2354 os.path.split(self.GSASprojectfile)[1])[0]+'.gcmd' 2358 2355 dlg = wx.FileDialog(self, 2359 2356 'Choose an file to read saved actions', '.', defnam, … … 2365 2362 filename = dlg.GetPath() 2366 2363 # make sure extension is correct 2367 filename = os.path.splitext(filename)[0]+ u'.gcmd'2364 filename = os.path.splitext(filename)[0]+'.gcmd' 2368 2365 else: 2369 2366 filename = None … … 2768 2765 arg = sys.argv 2769 2766 if len(arg) > 1 and arg[1]: 2770 self.GSASprojectfile = os.path.splitext(arg[1])[0]+ u'.gpx'2767 self.GSASprojectfile = os.path.splitext(arg[1])[0]+'.gpx' 2771 2768 self.dirname = os.path.abspath(os.path.dirname(arg[1])) 2772 2769 if self.dirname: os.chdir(self.dirname) … … 3610 3607 GetGPX() 3611 3608 else: 3612 self.GSASprojectfile = os.path.splitext(filename)[0]+ u'.gpx'3609 self.GSASprojectfile = os.path.splitext(filename)[0]+'.gpx' 3613 3610 self.dirname = os.path.split(filename)[0] 3614 3611
Note: See TracChangeset
for help on using the changeset viewer.