I have a cross platform os.startfile but I need to asociate files with xdg-open in linux how do I do that??
Paul Boddie
paul at boddie.org.uk
Wed Dec 16 11:36:33 EST 2009
On 16 Des, 17:03, "Eric_Dex... at msn.com" <Eric_Dex... at msn.com> wrote:
> #this should be a cross platform example of os.startfile ( startfile )
> #for windows and linux. this is the first version and
> #linux, mac, other os's commands for exceptions to the
> #rule would be appreciated. at some point this will be
> #in the dex tracker project.
You could look at the desktop package for something similar:
http://pypi.python.org/pypi/desktop
The desktop.open function supports a few extra workarounds, mostly
because it pre-dates xdg-open.
Paul
More information about the Python-list
mailing list