finding out console user (Win95)

Arpad Kiss sekter at
Fri Nov 5 17:07:05 CET 1999

I don't know what "console user" means, but win32api.GetUserName() returns
the current user name.

----- Original Message -----
From: Radovan Garabik <garabik at>
Newsgroups: comp.lang.python
To: <python-list at>
Sent: Friday, November 05, 1999 3:07 PM
Subject: finding out console user (Win95)

> I am porting my script from unix to windows, and I need to find
> console user under win95 (under WinNT I can use os.environ['USERNAME'],
> which is not exactly console user, but good enough for me).
> Something like cuserid() or getlogin() as implemented in
> Cygwin would be ideal....
> Is there a simple way to find it?

More information about the Python-list mailing list