Re: Obtaining user information

2011-12-10 Thread Tim Chase
On 12/10/11 01:37, Cameron Simpson wrote: On 09Dec2011 19:44, Tim Chase wrote: | Currently I can get the currently-logged-in-userid via | getpass.getuser() which would yield something like "tchase". _If_ you're on a terminal. _And_ that's exactly what you want. Personally I need to the name of

Re: Obtaining user information

2011-12-10 Thread Cameron Simpson
On 10Dec2011 08:43, Hans Mulder wrote: | On 10/12/11 02:44:48, Tim Chase wrote: | >Currently I can get the currently-logged-in-userid via getpass.getuser() | >which would yield something like "tchase". | > | >Is there a cross-platform way to get the full username (such as from the | >GECOS field o

Re: Obtaining user information

2011-12-09 Thread Hans Mulder
On 10/12/11 02:44:48, Tim Chase wrote: Currently I can get the currently-logged-in-userid via getpass.getuser() which would yield something like "tchase". Is there a cross-platform way to get the full username (such as from the GECOS field of /etc/passed or via something like NetUserGetInfo on W

Re: Obtaining user information

2011-12-09 Thread Cameron Simpson
On 09Dec2011 19:44, Tim Chase wrote: | Currently I can get the currently-logged-in-userid via | getpass.getuser() which would yield something like "tchase". _If_ you're on a terminal. _And_ that's exactly what you want. Personally I need to the name of geteuid() or getuid() more often. | Is ther

Obtaining user information

2011-12-09 Thread Tim Chase
Currently I can get the currently-logged-in-userid via getpass.getuser() which would yield something like "tchase". Is there a cross-platform way to get the full username (such as from the GECOS field of /etc/passed or via something like NetUserGetInfo on Win32 so I'd get "Tim Chase" instead?