<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 2:44 PM, Anita Graser <span dir="ltr"><<a href="mailto:anitagraser@gmx.at" target="_blank">anitagraser@gmx.at</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"><div dir="ltr"><div style="font-size:small">HI Victor,</div><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On Thu, Nov 26, 2015 at 1:12 PM, Victor Olaya <span dir="ltr"><<a href="mailto:volayaf@gmail.com" target="_blank">volayaf@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">does Processing.getAlgorithm("script:helloworld") work in a normal<br>
QGIS Python console?<br></blockquote><div><br></div></span><div><div style="font-size:small">Yes it does.</div></div><span class=""><div style="font-size:small"><br></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">
Just in case, the name of the script is the name of the file (without<br>
the extension)<br>
<br>
Maybe you can try <div style="font-size:small;display:inline"></div>Processing.alghelp("script") to get the name of<br>
available algorithms from the script provider<br></blockquote><div><br></div></span><div style="font-size:small">Is alghelp() really correct? Even in the Python console, I only get errors</div><div style="font-size:small"><br></div><div>processing.alghelp("scripts")</div><div>Algorithm not found</div><div>Processing.alghelp("script")</div><div>Traceback (most recent call last):</div><div> File "<input>", line 1, in <module></div><div style="font-size:small">AttributeError: class Processing has no attribute 'alghelp'</div><div style="font-size:small"><br></div></div></div></div></blockquote><div><br></div><div><br></div><div><br></div><div><div class="gmail_default" style="font-size:small">FYI </div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default">scripts = Processing.getProviderFromName('scripts')</div><div class="gmail_default" style="">print scripts.algs<span style="font-size:small"></span></div><div class="gmail_default" style=""><span style="font-size:small"><br></span></div><div class="gmail_default" style=""><span style="font-size:small">returns an empty list if run in the stand-alone script</span></div><div class="gmail_default" style=""><span style="font-size:small"><br></span></div><div class="gmail_default" style=""><span style="font-size:small">Best wishes,</span></div><div class="gmail_default" style=""><span style="font-size:small">Anita</span></div><div class="gmail_default" style=""><span style="font-size:small"><br></span></div><div class="gmail_default" style=""><span style="font-size:small"><br></span></div><div class="gmail_default" style=""><span style="font-size:small"><br></span></div><br></div><div><br></div><div> </div></div><br></div></div>