I found several articles and even a stack of overflow questions dedicated to this issue, but I still can't do it.
What I want to do is open a firefox instance from python. then the python application should monitor its business and ignore the firefox process.
I was able to achieve this goal on Windows-7 and XP using:
subprocess.Popen()
On OS X, I tried:
subprocess.Popen(['/Applications/Firefox.app/Contents/MacOS/firefox-bin']) subprocess.call(['/Applications/Firefox.app/Contents/MacOS/firefox-bin']) subprocess.call(['/Applications/Firefox.app/Contents/MacOS/firefox-bin'], shell=True) os.system('/Applications/Firefox.app/Contents/MacOS/firefox-bin')
(and maybe some others that I forgot) is useless. The python application freezes until I close the firefox application.
What am I missing here? any clues?
source share