Hi there,
I am trying to execute a browser with an url parameter passed in. For an example
os.system("firefox.exe www.jython.org")
is an ideal kind of format, but it requires the user to add C:\Program Files\Mozilla Firefox\ to their system path first.
This I cannot assume, so am letting the user specify the browser of choice (and full path to it) in a config file. Therefore when the browser path os read, my script generates a "browse to this url" command in the following style
C:\Program Files\Mozilla Firefox\firefox.exe www.jython.org using os.system.
os.system("C:\Program Files\Mozilla Firefox\firefox.exe www.jython.org") however results in a "windows cannot find C:\program ... " error.
This format:
"C:\Program Files\Mozilla Firefox\firefox.exe" www.jython.org
works nicely from the windows run dialog, but doing:
os.system('"C:\Program Files\Mozilla Firefox\firefox.exe" www.jython.org')
gives me a java.lang.IllegalArgumentException
Can anyone give me a clue?


Gareth Doutch
System Test Engineer
Motorola point to point fixed wireless solutions group


+44 1364 655 581 tel
+44 1364 654625 fax

Unit A1 Linhay Business Park,
Eastern Road,
Devon, TQ13 7UP