<div dir="ltr"><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 30, 2015 at 5:16 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:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The issue is that the "default" folder is based on the location of the<br>
parent app (if I am not wrong). I can probably move it to somewhere in<br>
.qgis2  instead. But if there is a manually entered path, then it will<br>
not use the default one, that's only used if no custom configuration<br>
has been done. </blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Let me check and will see how to fix this.<br></blockquote><div><br></div><div><div class="gmail_default" style="font-size:small">​Hi Victor,</div><div class="gmail_default" style="font-size:small">Have you had chance yet to look into this? I can work with a work-around for now but would be great to see this cleared up.</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><br></div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5"><br>
2015-11-30 15:23 GMT+01:00 Anita Graser <<a href="mailto:anitagraser@gmx.at">anitagraser@gmx.at</a>>:<br>
> On Fri, Nov 27, 2015 at 3:53 PM, Anita Graser <<a href="mailto:anitagraser@gmx.at">anitagraser@gmx.at</a>> wrote:<br>
>><br>
>> On Fri, Nov 27, 2015 at 8:58 AM, Victor Olaya <<a href="mailto:volayaf@gmail.com">volayaf@gmail.com</a>> wrote:<br>
>>><br>
>>> 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>
>><br>
>><br>
>> from processing.script.ScriptUtils import *<br>
>> print ScriptUtils.scriptsFolder()<br>
>><br>
>> if run in stand-alone, returns a wrong folder:<br>
>> /home/agraser/temp/standaloneprocessing/processing/scripts<br>
>> (/home/agraser/temp/standaloneprocessing is the location of my stand-alone<br>
>> script)<br>
>><br>
>> instead of the correct folder in the QGIS console: u'<br>
>> /home/agraser/.qgis2/processing/scripts'.<br>
>><br>
>> Seems like we are getting closer to where the real issue is hiding. Imho<br>
>> it makes little sense that the paths appear relative to the stand-alone<br>
>> script's location.<br>
><br>
><br>
> If I move the stand-alone script into<br>
> /home/agraser/.qgis2/, I can execute it and it finds my custom Processing<br>
> script.<br>
><br>
> In any other location the script fails because Processing uses the wrong<br>
> scripts folder.<br>
><br>
> I'd rather not hard-code the scripts folder. Do you have an idea how to make<br>
> Processing use its "default" scripts folder rather than something in the<br>
> stand-alone script's location?<br>
><br>
> Thanks and best wishes,<br>
> Anita<br>
><br>
><br>
><br>
</div></div></blockquote></div><br></div></div>