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

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -