I'm writing an automation program and I'm using subprocess.call to open Google Chrome. The code for this is
from subprocess import call
...
call('google-chrome')
When I run this program through the terminal Chrome launches but it remains tied to the terminal. If I try call('google-chrome &') I get No such file or directory in my traceback. ($ google-chrome & when entered in terminal will launch Chrome but it won't tie it to the terminal).
I've also tried call(['google-chrome', '&']) but this opens Chrome still tied to the terminal but it thinks the & is an argument for a website I want to open.
Should I be using subprocess.call for this?