Is there a portable way to get the current user\'s username in Python (i.e., one that works under both Linux and Windows, at least). It would work like os.getuid
I wrote the plx module some time ago to get the user name in a portable way on Unix and Windows (among other things):
http://www.decalage.info/en/python/plx