Setting environment variables

mark mark at diversiform.com
Thu Sep 18 17:22:39 CEST 2003


I tend to establish environment variables using an install program like
Inno Setup, then access them from within my Python script.  This worked
for me under Win2000, but I haven't tried it with XP.

HTH,

Mark

-----Original Message-----
From: python-list-admin at python.org [mailto:python-list-admin at python.org]
On Behalf Of Sami Viitanen
Sent: Wednesday, September 17, 2003 11:41 PM
To: python-list at python.org
Subject: Setting environment variables

Hello,

Is there any other way to set variables than os.putenv().

Putenv doesn't actually put any values to actual system variables..

I'm trying to set CVSEDITOR variable automatically from script
so that user wouldn't have to set that him/herself. CVS can't use
variable
set with putenv().


Thanks in advance.


-- 
http://mail.python.org/mailman/listinfo/python-list







More information about the Python-list mailing list