set environmental variable from python
Artur Bercik
vbubbly21 at gmail.com
Thu Oct 30 21:22:45 EDT 2014
I have to set environmental variable in my windows PC as follows:
variable name: GISBASE
value: C:\GRASS-64
Is it possible to set it from python?
import sys
sys.path.append("C:\\GRASS-64")
But how to give variable name? I have to set both the variable name and
value.
Thanks in the advance.
Artur
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20141031/8436f627/attachment.html>
More information about the Python-list
mailing list