I\'m trying to automate a process using python. If I am just in the terminal the workflow looks like:
user:> . /path/to/env1.sh user:> python somethin
You can use subprocess:
subprocess
>>> import subprocess >>> subprocess.call('python something.py', shell = True)
Or you can use os:
os
>>> import os >>> os.system('python something.py')
Here is an example (turn on your speakers):
>>> import os >>> os.system('say Hello')