*Tim Michelsen* timmichelsen at gmx-topmail.de
*Mon May 19 21:36:30 CEST 2008*
- Previous message: [Tutor] Open a directory in the default file manager
<http://mail.python.org/pipermail/tutor/2008-May/061820.html>
- Next message: [Tutor] Getting started with Python
Hi!
> is there any function/module that allows me to open a directory in the
> default file manager of a operating system?
On Windows you can use os.startfile().
On "pure" Unices there's no such thing as filetype associations
However, if you use a desktop environment, you can spawn xdg-open
Tim Michelsen wrote:
> Hello,
> is there any function/module that allows me to open a directory in the
> default file manager of a operating system?
On Windows you can use os.startfile().
On "pure" Unices there's no such thing as filetype associations
However, if you use a desktop environment, yo
Hello,
is there any function/module that allows me to open a directory in the
default file manager of a operating system?
Here I a piece of code how to open a URL in the default webbrowser:
http://www.python.org/doc/lib/module-webbrowser.html
import webbrowser
myurl = 'http://www.python.org'