What is a "pythonic" way to determine which user ran a python script from within the script?
For instance, I know that you can run shell commands from within the script to do an
echo $USER
but is there a more standard python way of determining which user is running the script?
Like a get_user()
command for a standard library?