Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 23218

Environment variables for the current user with Python

$
0
0

How can you get a list of the environment variables for the current user ("user variables") using Python?

os.environ() returns the system variables, and changing those requires admin access.

I want to have it change the user variables for PATH, as that can be done without any restrictions.


Viewing all articles
Browse latest Browse all 23218

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>