Files
pm3py/activate
michael f294aba9ef fix: pm3 command for mode switching without re-sourcing venv
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>
2026-03-18 21:05:00 -07:00

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"