GNU bug report logs - #14366
24.3; Python os.getlogin does not work

Previous Next

Package: emacs;

Reported by: rajanikanth <at> gmail.com

Date: Wed, 8 May 2013 03:22:02 UTC

Severity: minor

Tags: notabug

Found in version 24.3

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Rajanikanth Jammalamadaka <rajanikanth <at> gmail.com>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 14366 <at> debbugs.gnu.org
Subject: bug#14366: 24.3; Python os.getlogin does not work
Date: Wed, 8 May 2013 18:29:59 -0400
[Message part 1 (text/plain, inline)]
> > FileNotFoundError: [Errno 2] No such file or directory
>
> Works for me. Found various old Python bugs related to this:
>
> http://bugs.python.org/issue584566
> http://bugs.python.org/issue1750013
>
> > System Description:   Ubuntu 13.04
>

Thanks. Please close it. I will use pwd which is the recommended module:

>>> pwd.getpwuid(os.getuid())[0]
pwd.getpwuid(os.getuid())[0]
'rajanikanth'

Thanks,
Raj

-- 
Rajanikanth
[Message part 2 (text/html, inline)]

This bug report was last modified 12 years and 100 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.