From 14eaac5edf88ef30b109ed7cab334ae410fbdb62 Mon Sep 17 00:00:00 2001 From: Benjy Weinberger Date: Wed, 29 Oct 2014 16:22:57 +0000 Subject: [PATCH] Add the environment's PYTHONPATH to sys.path when running dev pants. This is helpful when running a graphical debugger: you need to ensure that the debugger's code (pydevd in my case) is on your path so you can import it at the tracepoint. Reviewed at https://rbcommons.com/s/twitter/r/1237/ --- pants | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pants b/pants index c4299c2685d..3bd716181af 100755 --- a/pants +++ b/pants @@ -77,7 +77,7 @@ function run_pants_bare() { function exec_pants_bare() { activate_pants_venv - PYTHONPATH="${PANTS_SRCPATH}" exec python ${PANTS_EXE} "$@" + PYTHONPATH="${PANTS_SRCPATH}:${PYTHONPATH}" exec python ${PANTS_EXE} "$@" } if [ ! -z "${PANTS_DEV}" ]; then