RE: How to change Windows Environment Variable

2001-08-31 Thread Michael Robin
TECTED]; [EMAIL PROTECTED] Subject: RE: How to change Windows Environment Variable [???] > Thanks quick reply. But not set to OS. > I would like to set and using while login windows. > > >>>Import os Here I get suspicious, on two counts: there's no space between the prom

RE: How to change Windows Environment Variable

2001-08-31 Thread Tim Peters
[???] > Thanks quick reply. But not set to OS. > I would like to set and using while login windows. > > >>>Import os Here I get suspicious, on two counts: there's no space between the prompt and your import, and Python is case-sensitive so "Import os" would have given a SyntaxError. Both of tho

Re: How to change Windows Environment Variable

2001-08-31 Thread Ignacio Vazquez-Abrams
On Fri, 31 Aug 2001, ??? wrote: > Dear all, > > How to change environment variable on Windows NT or 2000 by python? > > In Visual Basic case can setting as below: > > Private Declare Function GetEnvironmentVariable Lib "kernel32" _ > Alias "GetEnvironmentVariableA" (ByVal lpName As String, _

RE: How to change Windows Environment Variable

2001-08-30 Thread ???
VB case OK! Please answer. -Original Message- From: Stephen Hansen [mailto:[EMAIL PROTECTED]] Sent: Friday, August 31, 2001 7:59 AM To: ??? Subject: Re: How to change Windows Environment Variable How about... import os os.environ['Variable'] = '