X-Git-Url: https://git.ozlabs.org/?p=patchwork;a=blobdiff_plain;f=apps%2Fpatchwork%2Fbin%2Fparsemail-batch.sh;h=31ef4f0a7e4f0ef83b7b1cdb8d7fca8383e53b2e;hp=d786022c2742ea76716e7a28350ceb068109d273;hb=c237b832d7bfa9bad2ba76e89888dcbfa4c924dc;hpb=88e77da6413f137488da91a3f1ab1a67b261cfb4 diff --git a/apps/patchwork/bin/parsemail-batch.sh b/apps/patchwork/bin/parsemail-batch.sh index d786022..31ef4f0 100755 --- a/apps/patchwork/bin/parsemail-batch.sh +++ b/apps/patchwork/bin/parsemail-batch.sh @@ -19,7 +19,7 @@ # along with Patchwork; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -PATCHWORK_BASE="/srv/patchwork" +PATCHWORK_BINDIR=`dirname $0` if [ $# -ne 1 ] then @@ -41,11 +41,5 @@ ls -1rt "$mail_dir" | while read line; do echo $line - PYTHONPATH="$PATCHWORK_BASE/apps":"$PATCHWORK_BASE/lib/python" \ - DJANGO_SETTINGS_MODULE=settings \ - "$PATCHWORK_BASE/apps/patchwork/bin/parsemail.py" < \ - "$mail_dir/$line" + $PATCHWORK_BINDIR/parsemail.sh < "$mail_dir/$line" done - - -