Duncan Booth wrote:
It's not too hard to get the required command line from the registry:

import _winreg
print _winreg.QueryValue(_winreg.HKEY_CLASSES_ROOT,
    'FirefoxURL\shell\open\command')

and of course it throws an exception if firefox isn't installed.

Then just replace %1 with the url to get the actual command you need.

That's neat. You learn something new...

TJG
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to