import osprint 'setenv...',print os.environ['USER'] # show current shell variable valueos.environ['USER'] = 'Brian' # runs os.putenv behind the scenesos.system('python echoenv.py')os.environ['USER'] = 'Arthur' # changes passed to spawned programsos.system('python echoenv.py') # and linked-in C library modulesos.environ['USER'] = raw_input('?') print os.popen('python echoenv.py').read()
Name (required)
email (will not be published) (required)
Website