source activate once, then pm3/pm3 sim/pm3 sniff/pm3 all to launch REPL with appropriate imports. Uses python -i for reliable startup. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
20 lines
610 B
Plaintext
20 lines
610 B
Plaintext
# pm3py venv activation.
|
|
# Usage: source activate
|
|
#
|
|
# Then: pm3 — REPL with core imports (Proxmark3, Cmd)
|
|
# pm3 sim — + SimSession, all transponder models
|
|
# pm3 sniff — + SniffSession, trace decoders
|
|
# pm3 all — everything
|
|
|
|
_PM3PY_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
|
|
# Activate the venv
|
|
source "${_PM3PY_ROOT}/.venv/bin/activate"
|
|
|
|
# pm3 command — launches REPL with mode
|
|
pm3() {
|
|
PM3PY_MODE="${1:-core}" python -i "${_PM3PY_ROOT}/.pythonstartup.py"
|
|
}
|
|
|
|
echo "pm3py env ready. Commands: pm3, pm3 sim, pm3 sniff, pm3 all"
|