Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #80094

Re: set environmental variable from python

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!news2.arglkargh.de!news.mixmin.net!aioe.org!.POSTED!not-for-mail
From Alexander Blinne <news@blinne.net>
Newsgroups comp.lang.python
Subject Re: set environmental variable from python
Date Sat, 01 Nov 2014 17:30:14 +0100
Organization Aioe.org NNTP Server
Lines 18
Message-ID <m331qj$atk$1@speranza.aioe.org> (permalink)
References <mailman.15338.1414718595.18130.python-list@python.org>
NNTP-Posting-Host lT2uOZUdEnSBxmKzqu1GSw.user.speranza.aioe.org
Mime-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding 7bit
X-Complaints-To abuse@aioe.org
User-Agent Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.24) Gecko/20100411 Lightning/0.9 Thunderbird/2.0.0.24 Mnenhy/0.7.6.666
X-Notice Filtered by postfilter v. 0.8.2
Xref csiph.com comp.lang.python:80094

Show key headers only | View raw


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


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