[Py Windows] User Directory Path



Hi,

Is there a way to know the main directory path of a user session?
I mean the "C:\Documents and Settings\username" Directory of the user logged
into a windows session.
In .NET you can do this with a :
System.Environment.GetEnvironmentVariable("HOMEDRIVE")
System.Environment.GetEnvironmentVariable("HOMEPATH")

Maybe it's a stupid question that was already answered.. but can't anything
on archives..

thanks a lot

Ben


.



Relevant Pages

  • Re: HOw to get the application directory
    ... > Excuse me.. ... this does sound like a stupid question. ... > application's directory path. ...
    (microsoft.public.vc.mfc)
  • HOw to get the application directory
    ... this does sound like a stupid question. ... application's directory path. ... I must not be searching on the right names ... GetApplicationPath()? ...
    (microsoft.public.vc.mfc)
  • Re: deleting a file
    ... Regards - Octavio ... Prev by Date: ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Security Exception
    ... hiding somewhere in my directory path? ... Prev by Date: ...
    (microsoft.public.dotnet.languages.vb)
  • Re: HOw to get the application directory
    ... this does sound like a stupid question. ... > application's directory path. ... I must not be searching on the right names ...
    (microsoft.public.vc.mfc)