<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jan 28, 2014 at 2:57 PM, 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">Trying a summary on this discussion.<br>
<br>
AFAIU, the whole discussion boils down to the question if we want to<br>
require a system-wide installation of Python with correct python file<br>
associations in the registry, potentially deactivating an existing<br>
Python installation, or not.<br>
<br>
There seems to be agreement that we do not want to modify any existing<br>
system-wide python installation.<br>
<br>
That means that WinGRASS should<br>
1) not do a system-wide installation of Python<br>
2) not require a system-wide Python installation<br>
3) explicitly ignore any existing system-wide installation of Python,<br>
or any Python file associations in the registry (text-editor,<br>
whatever)<br>
<br>
That means that we must assume that Windows has no idea what to do<br>
with Python files, and if it has an idea, this is most probably a bad<br>
idea, as far as GRASS scripts are concerned. As for shell scripts in<br>
GRASS 6. That in turn means that GRASS Python scripts must be called<br>
explicitly with GRASS_PYTHON, most importantly scripts from within<br>
scripts.<br>
<br>
IMHO, creating .bat files for python scripts is easy because the<br>
equivalent is already working for WinGRASS 6.4 where .bat files are<br>
created for shell scripts. AFAICT none of the other suggestions<br>
(virtualenv, Python launcher, pip, etc) has been tested successfully<br>
on Windows with GRASS 7, both with and without a separate incompatible<br>
system-wide Python installation.<br></blockquote><div><br></div><div>Thanks for the summary. </div><div><br></div><div>About the bat files: I just realized I cannot run v.colors on Windows in grass 6.4.4svn because v.colors is a bash script and inside it calls another bash script (v.db.addcol) and it can't find it. I saw some pretty old discussion on this topic [1]. I will create a ticket (I couldn't find any). I am not sure if this is related to what you are suggesting but I would like to mention it before we decide to go with bat files.</div>

<div><br></div><div>Anna</div><div><br></div><div>[1] <a href="http://lists.osgeo.org/pipermail/grass-user/2010-November/058654.html">http://lists.osgeo.org/pipermail/grass-user/2010-November/058654.html</a></div></div></div>

</div>