[PATCH 03/10] bin/parse: append parameters to parse script
Stephen Finucane
stephenfinucane at hotmail.com
Tue Aug 30 09:04:38 AEST 2016
On 23 Aug 17:03, WEN Pingbo wrote:
> Sometimes, we need to pass parameters to python parsing script
>
> Signed-off-by: WEN Pingbo <wengpingbo at gmail.com>
Jinx! :)
https://patchwork.ozlabs.org/patch/663873/
The change to 'patchwork/bin/parsemail.sh' in v3 should add similar
functionality. Perhaps you could review this series?
Stephen
> ---
> patchwork/bin/parsearchive.sh | 2 +-
> patchwork/bin/parsemail.sh | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/patchwork/bin/parsearchive.sh b/patchwork/bin/parsearchive.sh
> index 11a3924..5e78227 100755
> --- a/patchwork/bin/parsearchive.sh
> +++ b/patchwork/bin/parsearchive.sh
> @@ -24,6 +24,6 @@ PATCHWORK_BASE=`readlink -e $BIN_DIR/../..`
>
> PYTHONPATH="$PATCHWORK_BASE":"$PATCHWORK_BASE/lib/python:$PYTHONPATH" \
> DJANGO_SETTINGS_MODULE=patchwork.settings.production \
> - "$PATCHWORK_BASE/patchwork/bin/parsearchive.py"
> + "$PATCHWORK_BASE/patchwork/bin/parsearchive.py" $@
>
> exit 0
> diff --git a/patchwork/bin/parsemail.sh b/patchwork/bin/parsemail.sh
> index 9973392..3eca903 100755
> --- a/patchwork/bin/parsemail.sh
> +++ b/patchwork/bin/parsemail.sh
> @@ -24,6 +24,6 @@ PATCHWORK_BASE=`readlink -e $BIN_DIR/../..`
>
> PYTHONPATH="$PATCHWORK_BASE":"$PATCHWORK_BASE/lib/python:$PYTHONPATH" \
> DJANGO_SETTINGS_MODULE=patchwork.settings.production \
> - "$PATCHWORK_BASE/patchwork/bin/parsemail.py"
> + "$PATCHWORK_BASE/patchwork/bin/parsemail.py" $@
>
> exit 0
> --
> 1.9.1
>
> _______________________________________________
> Patchwork mailing list
> Patchwork at lists.ozlabs.org
> https://lists.ozlabs.org/listinfo/patchwork
More information about the Patchwork
mailing list