[wxPython-users] How to open an explorer window?
Robert Dailey
rcdailey at gmail.com
Wed Aug 1 14:12:03 PDT 2007
I want to thank all of you for the valuable responses. I have the answers I
needed. Thank you very much.
On 8/1/07, Robin Dunn <robin at alldunn.com> wrote:
>
> Phil Mayes wrote:
> > At 02:51 PM 7/31/2007, you wrote:
> >> Hi,
> >>
> >> I currently use wxPython on windows. Is there a way to make an
> >> explorer window open up, displaying the directory that contains a
> >> file? For example, if I have the path
> >> "C:\myfolder\subfolder\file.txt", I want to pass this path into a
> >> function that opens up an explorer window at the folder
> >> "C:\myfolder\subfolder\" with the file " file.txt" highlighted. Is
> >> this possible? I'm not sure if this is a wxPython ability or if the
> >> python libraries support this.
> >>
> >> Thanks.
> >
> > The only way I could find needed to hardwire the location of explorer
> :-(
>
> You can either count on it being on the PATH, or you can use
> os.environ['SystemRoot'] to find out the name of the dir it is located in.
>
> --
> Robin Dunn
> Software Craftsman
> http://wxPython.org Java give you jitters? Relax with wxPython!
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wxPython-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wxPython-users-help at lists.wxwidgets.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/200708=
01/864e4cec/attachment.htm
More information about the wxpython-users
mailing list