Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #80094
| From | Alexander Blinne <news@blinne.net> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: set environmental variable from python |
| Date | 2014-11-01 17:30 +0100 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <m331qj$atk$1@speranza.aioe.org> (permalink) |
| References | <mailman.15338.1414718595.18130.python-list@python.org> |
Am 31.10.2014 um 02:22 schrieb Artur Bercik:
> 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.
http://lmgtfy.com/?q=how+to+set+environment+variable+with+python
Back to comp.lang.python | Previous | Next — Previous 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