Ignore:
Timestamp:
Jan 31, 2020 4:07:00 AM (3 years ago)
Author:
vondreele
Message:

set default directories to G2frame.LastGPXdir or result from GetImportPath? or GetExportPath? in most FileDialogs?
It is never None; ultimate default is '.' with a printed message - shouldn't happen
Set self.LastGPXdir to location of gpx file anytime GSAS-II reads it to start that project.
It should never be None or '.'.
Remove RMCProfile patches - shouldn't be needed now.
Make sure RMCProfile data files are local to the gpx file - required for running RMCProfile

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIdataGUI.py

    r4249 r4270  
    38433843        if os.path.exists(f):
    38443844            self.OnFileOpen(event, filename=f)
     3845            self.LastGPXdir = dirname
    38453846        else:
    38463847            print('file not found',f)       
     
    38853886                self.GSASprojectfile = dlg.GetPath()
    38863887                self.GSASprojectfile = G2IO.FileDlgFixExt(dlg,self.GSASprojectfile)
    3887                 self.dirname = dlg.GetDirectory()
     3888                self.LastGPXdir = dlg.GetDirectory()
    38883889            finally:
    38893890                dlg.Destroy()
     
    40154016                GSASprojectfile = dlg.GetPath()
    40164017                GSASprojectfile = G2IO.FileDlgFixExt(dlg,GSASprojectfile)
     4018                self.LastGPXdir = dlg.GetDirectory()
    40174019        finally:
    40184020            dlg.Destroy()
Note: See TracChangeset for help on using the changeset viewer.