Forum Archive

No getpass.getuser???

JadedTuna

Just noticed module getpass has no function getuser. How do I get current user's name then? Is that even possible?

userista

Check out the Note here. http://omz-software.com/pythonista/docs/library/getpass.html

userista

And to answer your question - if you want the user (which will always be mobile) you can use os.environ