On Tue, Nov 17, 2009 at 1:37 PM, <mj...@iol.pt> wrote: >> Alan Gauld wrote: >>> >>> <mj...@iol.pt> wrote
>>> If you do you can call it explicitly, but if you do not then you need to >>> find a way of getting the OS to tell you, or to leave it to the OS. > > I'm interested in nthis for the sake of generalizing (which is better). How > can I get the OS to tell me which program to use. Or alternatively, how to > tell the OS to open it - assuming that since the os knows which program to > use it will just use it (perhaps too big an assumption ;-) The "desktop" package provides a portable open() function: http://pypi.python.org/pypi/desktop It came out of this discussion (extensive, with links): http://bugs.python.org/issue1301512 Kent _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor