"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
>>
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
os.getenv or os.envoron, see http://docs.python.org/lib/os-procinfo.html
--
http://mail.python.org/mailman/listinfo/python-list
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