Get environment variable for current user and for all users in Python -
is there way determine environment variables returned os.environ
belongs current user , 1 - users? not want change it, get.
upd: using microsoft windows 7.
i don't think can figure out using standard python means os.environ
. way user , system variables on windows use registry, can find more here:
hkey_current_user\environment
system variables
hkey_local_machine\system\currentcontrolset\control\session manager\environment
user variables
you need access registry python them.
Comments
Post a Comment