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
p = subprocess.Popen(". /path/to/env.sh", shell = True, stdout=subprocess.PIPE).communicate() subprocess.call("python something.py", shell = True).communicate()