[Qgis-developer] Processing scripts in stand-alone Python scripts

Anita Graser anitagraser at gmx.at
Thu Nov 26 14:43:00 PST 2015


On Thu, Nov 26, 2015 at 11:17 PM, Luigi Pirelli <luipir at gmail.com> wrote:

> processing.alglist('script') to retrieve the list of commands with
> "script" string inside it's name or description
> e.g.
> processing.alglist('ogr')
> returns a lot of elements... if we get one of them
>
​--- >8 ---------------------------- snip

> if the list is is empty => no commands/scripts found with "script"
>

​Thanks Luigi, but I'm not sure how this helps​.

​scripts = Processing.getProviderFromName('scripts')
print scripts.algs​

returns a NON-empty list when run in the Python console but an empty list
when run in a stand-alone script.

Some part of the initialization of the scripts provider seems to fail.

Best wishes,
Anita​
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20151126/d987608a/attachment.html>


More information about the Qgis-developer mailing list