Re: [python-win32] Walking the shell namespace in Python

2010-05-10 Thread Mark Hammond
On 7/05/2010 4:29 PM, Thomas Heller wrote: Tim Golden schrieb: On 05/05/2010 20:33, Thomas Heller wrote: Does someone have example code snippets how to walk the shell namespace in Python? I'm lost in all these pidls and folders. The code below uses the pywin32 functions to walk. Because ther

Re: [python-win32] Walking the shell namespace in Python

2010-05-07 Thread Thomas Heller
Thomas Heller schrieb: [...] > > What I find strange if this: What I fond strange is this: > desktop.GetDisplayNameOf(pidl, SHGDN_FORPARSING) > u'C:\\Python26\\Lib\\site-packages' desktop.GetDisplayNameOf(pidl, SHGDN_NORMAL) > u'Python26' > > I would have expected that the last co

Re: [python-win32] Walking the shell namespace in Python

2010-05-07 Thread Tim Golden
On 07/05/2010 07:29, Thomas Heller wrote: Thanks Tim, your script gave me a good start. It seems that pywin32 wraps pidls as list of strings, so getting the parent is as simple as removing the last part Didn't think of that! TJG ___ python-win32 mai

Re: [python-win32] Walking the shell namespace in Python

2010-05-06 Thread Thomas Heller
Tim Golden schrieb: > On 05/05/2010 20:33, Thomas Heller wrote: >> Does someone have example code snippets how to walk the shell namespace in >> Python? >> I'm lost in all these pidls and folders. > > The code below uses the pywin32 functions to walk. Because there's all > sorts of things which c

Re: [python-win32] Walking the shell namespace in Python

2010-05-06 Thread Tim Golden
On 05/05/2010 20:33, Thomas Heller wrote: Does someone have example code snippets how to walk the shell namespace in Python? I'm lost in all these pidls and folders. The code below uses the pywin32 functions to walk. Because there's all sorts of things which can happen, I've implemented a v. b

[python-win32] Walking the shell namespace in Python

2010-05-05 Thread Thomas Heller
Does someone have example code snippets how to walk the shell namespace in Python? I'm lost in all these pidls and folders. Basically I want to implement a combobox similar to the 'explorer bar' in Windows explorer; given a certain directory - say 'c:\Python26\lib\site-packages' I want to find