List system variable keys and set a system parameter key : System Variables « System « Python






List system variable keys and set a system parameter key

import os
os.environ.keys()

os.environ['TEMP']

os.environ['TEMP'] = r'c:\temp'
os.environ['TEMP']


           
       








Related examples in the same category

1.Output USER in your system
2.Output system parameter: PYTHONPATH path by path