On Fri, Mar 05, 2010 at 11:42:28PM -0500, Tony Nelson wrote:
On 10-03-05 17:00:12, Till Maas wrote:
...
> But it seems that os.getlogin() is too smart for this purposes, e.g.
> for me it always uses the username that started X, even if I "su -"
> or "sudo -i" into another account.
The Python docs[1] suggest using the environment variable LOGNAME.
[1] <
http://docs.python.org/library/os.html#os.getlogin>
Thank you, it has been changed.
Regards
Till