On Tue, 13 Mar 2018 13:00:52 +0800 Drew Parsons <dpars...@debian.org>
wrote:
> 
> Of course no data files will be found there.  The dialog should be
> configured to start from the user's home dir (or recently used, or
> somesuch).
> 

It's likely somewhere in the wxPython API, around wx.FileDialog, 
cf. ll.352,357 in sas/sasgui/guiframe/gui_manager.py

https://docs.wxpython.org/wx.FileDialog.html#wx.FileDialog
We probably want to set defaultDir to os.path.expanduser("~") in the
constructor.  Extra marks for not doing that if a "recent dir" is
available instead, e.g check dlg.GetDirectory() and only SetDirectory
expanduser("~") if it's empty.


Drew

Reply via email to