Hi Glynn <div>For instance if I define GDAL_DATA like that, If in the same script I run grass.Popen(<command to external gdal executable) is that defined GDAL_DATA path applicable?</div><div>Thanks</div><div><br><div class="gmail_quote">
2011/3/31 Glynn Clements <span dir="ltr"><<a href="mailto:glynn@gclements.plus.com">glynn@gclements.plus.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im"><br>
Luisa Peña wrote:<br>
<br>
> Is it possible to define a Environmental variable for Windows, like<br>
> GDAL_DATA, like this in a Python Script?<br>
><br>
> os.environ['GDAL_DATA'] = <PATH><br>
><br>
> Is this possible? does this work?<br>
<br>
</div>Yes.<br>
<br>
However, as each process has its own environment, it only affects the<br>
process running the script and any child processes spawned from the<br>
script. You can't modify the environment of other processes, e.g. the<br>
process which invoked the script.<br>
<font color="#888888"><br>
--<br>
Glynn Clements <<a href="mailto:glynn@gclements.plus.com">glynn@gclements.plus.com</a>><br>
</font></blockquote></div><br></div>