On 7/30/10 12:04 PM, Jeremy Lewi wrote:
> Hello,
>> os.getlogin() throws an exception when called from Wing debug probe,
> python shell, or a script debugged in wing. This appears to be an issue
> with 4.0 and 3.2.
Yes, this is because Debug I/O in Wing isn't a real tty and getlogin()
is implemented oddly. You can either use an external console or use the
following (assuming you're not on win32): pwd.getpwuid(os.getuid())[0]
Cheers,
John