function run python
This is a helper function to execute a python program using the python interpreter. If ORIG_PATH is set, then python is invoked, with the specified
arguments, with PATH=$ORIG_PATH. Otherwise, python is invoked with the
Here are some sample invocations:
This functions uses the following environment variables:
- ORIG_PATH - if non-zero, is used to set PATH before python is invoked
All positional arguments are passed unmodified to the python interpreter command line.
Returns the result of the python program invocation.
Located in scripts/common.sh