Re: [Py Windows] User Directory Path

2005-04-30 Thread Wolfgang Strobl
"Zoool" : >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. >>> from win32com.shell.shell import SHGetSpecialFolderPath >>> from win32com.shell.shellcon import CSIDL_PROFILE >>

[Py Windows] User Directory Path

2005-04-30 Thread Zoool
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.GetEnvironmentVaria