finding out console user (Win95)

Arpad Kiss sekter at mail.matav.hu
Fri Nov 5 17:07:05 CET 1999


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

----- Original Message -----
From: Radovan Garabik <garabik at melkor.dnp.fmph.uniba.sk.spam>
Newsgroups: comp.lang.python
To: <python-list at python.org>
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?
>
> TIA






More information about the Python-list mailing list