diff mbox

parsemail: Honour existing PYTHONPATH

Message ID 1414271842-23018-1-git-send-email-damien.lespiau@intel.com
State Accepted
Headers show

Commit Message

Damien Lespiau Oct. 25, 2014, 9:17 p.m. UTC
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@intel.com>
---
 apps/patchwork/bin/parsemail.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Jeremy Kerr Nov. 10, 2014, 12:34 p.m. UTC | #1
Hi Damien,

> 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.

OK, makes sense. Applied.

Cheers,


Jeremy
diff mbox

Patch

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"