Setting environment variables

mark mark at
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.



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


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
set with putenv().

Thanks in advance.


More information about the Python-list mailing list