[Qgis-developer] Output directory
Paolo Cavallini
cavallini at faunalia.it
Fri Feb 19 00:00:18 PST 2016
Il 18/02/2016 09:06, Victor Olaya ha scritto:
> I added this handy method to our library of common utils
>
> https://github.com/qgis/pyqgis_wrappers/blob/master/parfait/gui.py#L24
>
> It basically stores the path entered by the user, along with the
> caller method, so the next time the user is prompted for files from
> that same method, it remembers the last folder. That way, plugin users
> just need to use this method instead of doing it the normal qt way,
> and they do not have to worry about storing last paths.
>
> The function to find out the caller method name uses introspection and is here:
>
> https://github.com/qgis/pyqgis_wrappers/blob/master/parfait/utils.py#L7
>
> Might need some improvements and testing, but the idea is there, in
> case it might be useful
It certainly is. How can we make this more prominent for plugin
developers? Can we add it to the Plugin builder, or suggest there to use
it? Or add a suggestion on http://plugins.qgis.org/ HP?
All the best, and thanks.
--
Paolo Cavallini - www.faunalia.eu
QGIS & PostGIS courses: http://www.faunalia.eu/training.html
More information about the Qgis-developer
mailing list