[issue9808] Implement os.getlogin on Windows
report at bugs.python.org
Thu Sep 9 17:49:37 CEST 2010
Jon Anglin <janglin at fortresgrand.com> added the comment:
I can't answer that for the 'LOGNAME' environment variable on non-Windows systems, I was just keying off of what the docs claimed. As for Windows, I just came across this article http://support.microsoft.com/kb/273633 that shows we can not rely on this in the test.
I only put those environment variables in the test because I thought this test was a little weak (what else can we do?)
user_name = os.getlogin()
Even though %USERNAME% == os.getlogin() MOST of the time. It should be removed from the test.
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list