How do I get the username in Python? -


possible duplicate:
is there portable way current username in python?

how can username of account given script being executed?

import getpass print getpass.getuser() 

Comments

Popular posts from this blog

400 Bad Request on Apache/PHP AddHandler wrapper -

Add email recipient to all new Trac tickets -

php - Change action and image src url's with jQuery -