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: [EMAIL PROTECTED]

                Python forever!


-- http://mail.python.org/mailman/listinfo/python-list

Reply via email to