<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Feb 10, 2014 at 8:41 AM, Markus Metz <span dir="ltr"><<a href="mailto:markus.metz.giswork@gmail.com" target="_blank">markus.metz.giswork@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"><div class="">On Mon, Feb 10, 2014 at 12:04 PM, Moritz Lennert<br>


<<a href="mailto:mlennert@club.worldonline.be">mlennert@club.worldonline.be</a>> wrote:<br>
> On 10/02/14 11:46, Markus Metz wrote:<br>
>><br>
>> On Mon, Feb 10, 2014 at 11:26 AM, Helmut Kudrnovsky <<a href="mailto:hellik@web.de">hellik@web.de</a>> wrote:<br>
>>>>><br>
>>>>> Therefore we need<br>
>>>>> hard-coded special treatment for shell and Python scripts in order to<br>
>>>>> make sure that the correct interpreter is used.<br>
>>><br>
>>><br>
>>>> Just for my understanding: When you say hard-coded special treatment for<br>
>>>> shell scripts, are you speaking about the .bat files ?<br>
>>><br>
>>><br>
>>> I think yes.<br>
>><br>
>><br>
>> Or more generally, any mechanism explicitly using %GRASS_PYTHON%<br>
>> script.py.<br>
><br>
><br>
> But as far as I've seen, this might not be sufficient since this only<br>
> indicates which Python executable to use for launching the Python script,<br>
> but any library calls linked to that execution will involve the system-wide<br>
> installed Python. Which is different from bash scripts, where this is not an<br>
> issue.<br>
<br>
</div>GRASS Python scripts are currently executed using the system-wide<br>
installed Python if it exists. No attempt has been made to explicitly<br>
use GRASS_PYTHON, therefore it is not possible to say if the system's<br>
Python would really be completely ignored.<br></blockquote><div><br></div><div>If I remember correctly, Python scripts were not working from Python scripts, they were working from command line. And we were not able to explain why the right Python (or Python DLL) is used at one point but not the other. If there wouldn't be shell=True [1], I would say that we need to add it.</div>

<div><br></div><div>[1] <a href="http://trac.osgeo.org/grass/browser/grass/trunk/lib/python/script/core.py?rev=58952#L52">http://trac.osgeo.org/grass/browser/grass/trunk/lib/python/script/core.py?rev=58952#L52</a> </div>
<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">
<div class=""><div class="h5">_______________________________________________<br>
grass-dev mailing list<br>
<a href="mailto:grass-dev@lists.osgeo.org">grass-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/grass-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-dev</a><br>
</div></div></blockquote></div><br></div></div>