mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2026-08-24 10:05:29 -05:00
* context fo cursor * pass with docs refrence, fix line counts and some more and minor fixes * lint * pr comments * fixes
27 lines
542 B
Bash
Executable File
27 lines
542 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -o errexit
|
|
set -o nounset
|
|
set -o pipefail
|
|
|
|
SCRIPT_DIRECTORY=$(
|
|
cd -- "$(dirname -- "$0")"
|
|
pwd
|
|
)
|
|
REPO_ROOT=$(
|
|
cd -- "${SCRIPT_DIRECTORY}/.."
|
|
pwd
|
|
)
|
|
|
|
PYTHON_BIN=""
|
|
if [ -x "${REPO_ROOT}/.venv/bin/python" ]; then
|
|
PYTHON_BIN="${REPO_ROOT}/.venv/bin/python"
|
|
elif [ -x "${REPO_ROOT}/venv/bin/python" ]; then
|
|
PYTHON_BIN="${REPO_ROOT}/venv/bin/python"
|
|
else
|
|
echo "error: missing virtualenv python. expected ${REPO_ROOT}/.venv/bin/python or ${REPO_ROOT}/venv/bin/python" >&2
|
|
exit 1
|
|
fi
|
|
|
|
exec "${PYTHON_BIN}" "$@"
|