Bug#892797: sasview: should look for data files in home dir not package dir

Drew Parsons dparsons at debian.org
Tue Mar 13 07:55:55 UTC 2018


On Tue, 13 Mar 2018 13:00:52 +0800 Drew Parsons <dparsons at 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



More information about the debian-science-maintainers mailing list