<div dir="ltr"><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Nov 26, 2015 at 11:17 PM, Luigi Pirelli <span dir="ltr"><<a href="mailto:luipir@gmail.com" target="_blank">luipir@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">processing.alglist('script') to retrieve the list of commands with<br>
"script" string inside it's name or description<br>
e.g.<br>
processing.alglist('ogr')<br>
returns a lot of elements... if we get one of them<br></blockquote><div><div class="gmail_default" style="font-size:small;display:inline">​--- >8 ---------------------------- snip</div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
if the list is is empty => no commands/scripts found with "script"<br></blockquote><div><br></div><div><div class="gmail_default" style="font-size:small">​Thanks Luigi, but I'm not sure how this helps​.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">​<span style="font-size:12.8px">scripts = Processing.</span><span style="font-size:12.8px">getProviderFromName('scripts')</span></div><div class="gmail_default" style="font-size:small"><span style="font-size:12.8px">print scripts.algs</span>​</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">returns a NON-empty list when run in the Python console but an empty list when run in a stand-alone script.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Some part of the initialization of the scripts provider seems to fail. </div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Best wishes,</div><div class="gmail_default" style="font-size:small">Anita​</div><br></div><div><br></div><div><br></div><div> </div></div><br></div></div>