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 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: References: 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 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