This is to fix using the wrong python version when inside a virtualenv.
Signed-off-by: Ali Alnubani <alialnu@mellanox.com>
Signed-off-by: Stephen Finucane <stephen@that.guru>
PATCHWORK_BASE=$(readlink -e "$BIN_DIR/../..")
if [ -z "$PW_PYTHON" ]; then
- PW_PYTHON=python2
+ PW_PYTHON=python
fi
if [ -z "$DJANGO_SETTINGS_MODULE" ]; then
PATCHWORK_BASE=$(readlink -e "$BIN_DIR/../..")
if [ -z "$PW_PYTHON" ]; then
- PW_PYTHON=python2
+ PW_PYTHON=python
fi
if [ -z "$DJANGO_SETTINGS_MODULE" ]; then
--- /dev/null
+---
+fixes:
+ - |
+ The ``parsemail.sh`` and ``parsemail-batch.sh`` scripts, found in
+ ``patchwork/bin``, will now default to using ``python`` rather than
+ ``python2`` for calling ``manage.py``. This resolves an issue when
+ Patchwork is deployed with a virtualenv.