I have a bash script provided by a 3rd party which defines a set of functions. Here\'s a template of what that looks like
$ cat test.sh #!/bin/bash define
Yes, indirectly. Given this foo.sh:
function go() { echo "hi" }
Try this:
>>> subprocess.Popen(['bash', '-c', '. foo.sh; go'])
Output:
hi