mirror of
https://github.com/unclebob/mutator.git
synced 2026-11-07 10:43:49 +00:00
10 lines
281 B
Bash
Executable File
10 lines
281 B
Bash
Executable File
#!/bin/sh
|
|
# Run the mutation tool, creating a local virtualenv on first use.
|
|
ROOT=$(CDPATH= cd -- "$(dirname "$0")" && pwd)
|
|
PY="$ROOT/.venv/bin/python"
|
|
if [ ! -x "$PY" ]; then
|
|
python3 -m venv "$ROOT/.venv"
|
|
"$ROOT/.venv/bin/pip" install -e "$ROOT"
|
|
fi
|
|
exec "$PY" -m mutator "$@"
|