User Identification

Laszlo Zsolt Nagy gandalf at geochemsource.com
Tue Feb 8 07:46:50 EST 2005


>how about:
>
>  
>
>>>>import getpass
>>>>getpass.getuser()
>>>>        
>>>>
>'gromit'
>
>  
>
Hmm, yours is better. It also works on Windows. :-)
I wonder why os.getuser() does not work in Windows - apparently there is 
a good implementation for Windows.

-- 
_________________________________________________________________
  Laszlo Nagy		      web: http://designasign.biz
  IT Consultant		      mail: gandalf at geochemsource.com

     		Python forever!





More information about the Python-list mailing list