<div dir="ltr"><div class="gmail_default" style="font-size:small">On Fri, Nov 27, 2015 at 3:53 PM, Anita Graser <span dir="ltr"><<a href="mailto:anitagraser@gmx.at" target="_blank">anitagraser@gmx.at</a>></span> wrote:<br></div><div class="gmail_extra"><div class="gmail_quote"><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 class="gmail_extra"><div class="gmail_quote"><span class="">On Fri, Nov 27, 2015 at 8:58 AM, 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">I think this must be related to the configuration of the plugins folder.<br>
<br>
The script provider reads scripts in the scripts folder, which is<br>
configured as an option. Maybe that setting is not available in your<br>
stand-alone script...since it is stored using QSettings. You can check<br>
it calling ScriptUtils.scriptsFolder()<br></blockquote><div><br></div></span><div><div style="font-size:small">​from processing.script.ScriptUtils import *</div><div style="font-size:small">print ScriptUtils.scriptsFolder()</div><div style="font-size:small"><br></div><div style="font-size:small">if run in stand-alone, returns a wrong folder: ​/home/agraser/temp/standaloneprocessing/processing/scripts</div><div style="font-size:small">(/home/agraser/temp/standaloneprocessing is the location of my stand-alone script)</div></div><div style="font-size:small"><br></div><div><div style="font-size:small">​instead of the correct folder in the QGIS console: u'<div class="gmail_default" style="font-size:small;display:inline">​​</div>/home/agraser/.qgis2/processing/scripts'.</div></div><div style="font-size:small"><br></div><div style="font-size:small">Seems like we are getting closer to where the real issue is hiding. Imho it makes little sense that the paths appear relative to the stand-alone script's location.</div><div style="font-size:small"></div></div></div></div></blockquote></div><br></div><div class="gmail_extra"><div class="gmail_default" style="font-size:small">​If I move the stand-alone script into ​<div class="gmail_default" style="display:inline">​</div>/home/agraser/.qgis2/, I can execute it and it finds my custom Processing script. </div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">In any other location the script fails because Processing uses the wrong scripts folder.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I'd rather not hard-code the scripts folder. Do you have an idea how to make Processing use its "default" scripts folder rather than something in the stand-alone script's location?</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Thanks and best wishes,</div><div class="gmail_default" style="font-size:small">Anita</div><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div></div>