[Py Windows] User Directory Path
Zoool (at dot)
polykrombelcentercom
Sat Apr 30 13:44:42 EDT 2005
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
More information about the Python-list
mailing list