Answer the question
In order to leave comments, you need to log in
os.putenv in Python3?
Operating system WinXP.
Dialogue with python3:
C:\Python32>python<br/>
Python 3.2.1 (default, Jul 10 2011, 21:51:15) [MSC v.1500 32 bit (Intel)] on win<br/>
32<br/>
Type "help", "copyright", "credits" or "license" for more information.<br/>
>>> import os<br/>
>>> os.putenv('x', 'foo')<br/>
>>> os.environ['y'] = 'bar'<br/>
>>> ^Z<br/>
<br/>
C:\Python32>set x<br/>
Переменная среды x не определена<br/>
<br/>
C:\Python32>set y<br/>
Переменная среды y не определена<br/>
Answer the question
In order to leave comments, you need to log in
lmgtfy.com/?q=Permanent+environment+variable+windows
The second link is the setx utility. Normal set works only within one process and its descendants.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question