Jimmy Retzlaff wrote:
Kamilche wrote:

<sipped>
Folders like My Documents, My Pictures, etc. are special and you need to
determine their actual path before you can open them. The pywin32
extensions
(https://sourceforge.net/project/showfiles.php?group_id=78018) include a
way to get at this:

from win32com.shell import shellcon, shell
path = shell.SHGetFolderPath(0, shellcon.CSIDL_MYPICTURES, 0, 0)
os.startfile(path)

Google for CSIDL to find the constants to use for other special folders.

Here's the exact link you'll need (warning, long url ahead ;)


http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/reference/enums/csidl.asp

--

Vincent Wehren






Jimmy
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to