Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #79984
| From | Artur Bercik <vbubbly21@gmail.com> |
|---|---|
| Date | 2014-10-31 10:22 +0900 |
| Subject | set environmental variable from python |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.15338.1414718595.18130.python-list@python.org> (permalink) |
[Multipart message — attachments visible in raw view] - view raw
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
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
set environmental variable from python Artur Bercik <vbubbly21@gmail.com> - 2014-10-31 10:22 +0900 Re: set environmental variable from python Alexander Blinne <news@blinne.net> - 2014-11-01 17:30 +0100
csiph-web