getting the current userid with Python

guignot guignot at wanadoo.fr
Wed Aug 21 14:11:31 EDT 2002


Danathar wrote:

> Is there a direct method for getting the current userid in Python? 

you can use os.getenv("USER")
I do not know if it runs under windows.




More information about the Python-list mailing list