getting the current userid with Python

guignot guignot at wanadoo.fr
Wed Aug 21 20:11:31 CEST 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