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 >>

Re: User Directory Path

2005-04-30 Thread Zoool
Thanks a lot, os.environ["HOMEDRIVE"] os.environ["HOMEPATH"] are what i was looking for "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > os.getenv or os.envoron, see http://docs.python.org/lib/os-procinfo.html > -- http://mail.python.org/m

Re: User Directory Path

2005-04-30 Thread [EMAIL PROTECTED]
os.getenv or os.envoron, see http://docs.python.org/lib/os-procinfo.html -- http://mail.python.org/mailman/listinfo/python-list

[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