function run python

NAME [edit section]

run_python

SYNOPSIS [edit section]

run_python <arguments>

DESCRIPTION [edit section]

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 current PATH.

EXAMPLES [edit section]

Here are some sample invocations:

ENVIRONMENT and ARGUMENTS [edit section]

This functions uses the following environment variables:

All positional arguments are passed unmodified to the python interpreter command line.

RETURN [edit section]

Returns the result of the python program invocation.

SOURCE [edit section]

Located in scripts/common.sh

SEE ALSO [edit section]