summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDamien Lespiau <damien.lespiau@intel.com>2014-10-25 22:17:22 +0100
committerJeremy Kerr <jk@ozlabs.org>2014-11-10 20:27:28 +0800
commit3db814c3238c16702eb2f22e6503ba202e1cd744 (patch)
tree2ce4abfac3dfdf23f46340e0e6830a0d75aa2b7e
parenteb370553a4dab1e897c8afdc7a4e306cd314bbf7 (diff)
downloadpatchwork-3db814c3238c16702eb2f22e6503ba202e1cd744.tar.bz2
patchwork-3db814c3238c16702eb2f22e6503ba202e1cd744.tar.xz
parsemail: Honour existing PYTHONPATH
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> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
-rwxr-xr-xapps/patchwork/bin/parsemail.sh2
1 files changed, 1 insertions, 1 deletions
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"