[PATCH] parsemail: Honour existing PYTHONPATH

Damien Lespiau damien.lespiau at intel.com
Sun Oct 26 08:17:22 AEDT 2014


For setups where the patchwork dependencies are not part of the system
packages, one needs to indicate where to find them. parsemail.sh was
overriding PYTHONPATH without leaving us a chance to join in.

Signed-off-by: Damien Lespiau <damien.lespiau at intel.com>
---
 apps/patchwork/bin/parsemail.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/apps/patchwork/bin/parsemail.sh b/apps/patchwork/bin/parsemail.sh
index 6cac166..246c2a1 100755
--- a/apps/patchwork/bin/parsemail.sh
+++ b/apps/patchwork/bin/parsemail.sh
@@ -22,7 +22,7 @@
 BIN_DIR=`dirname $0`
 PATCHWORK_BASE=`readlink -e $BIN_DIR/../../..`
 
-PYTHONPATH="$PATCHWORK_BASE/apps":"$PATCHWORK_BASE/lib/python" \
+PYTHONPATH="$PATCHWORK_BASE/apps":"$PATCHWORK_BASE/lib/python:$PYTHONPATH" \
         DJANGO_SETTINGS_MODULE=settings \
         "$PATCHWORK_BASE/apps/patchwork/bin/parsemail.py"
 
-- 
1.8.3.1



More information about the Patchwork mailing list