Home | Trees | Indices | Help |
|
---|
|
1 import os 2 import pwd 3 4 9 10 11 # this get_username() is more robust than os.getenv('USERNAME') or 12 # getpass.getuser(), because the latter rely on the user's environment 13 # and thus cannot be trusted, since the underlying variables can be 14 # (accidentally or intentionally) removed or changed. 15 18
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue Dec 12 00:34:24 2017 | http://epydoc.sourceforge.net |