[Kimchi-devel] [PATCH] Bug fix: add PYTHONPATH for contrib/check_i18n.py

Zhou Zheng Sheng zhshzhou at linux.vnet.ibm.com
Tue Apr 22 08:14:35 UTC 2014


Reviewed-by: Zhou Zheng Sheng <zhshzhou at linux.vnet.ibm.com>
Reported-by: Mark Wu <wudxw at linux.vnet.ibm.com>

on 2014/04/22 15:42, shaohef at linux.vnet.ibm.com wrote:
> From: ShaoHe Feng <shaohef at linux.vnet.ibm.com>
> 
> for plugin i18n.py, it will import the base i18n.py
> The i18n.py may from install directory install of source directory.
> 
> Signed-off-by: ShaoHe Feng <shaohef at linux.vnet.ibm.com>
> Signed-off-by: Mark Wu <wudxw at linux.vnet.ibm.com>
> Signed-off-by: Zhou Zheng Sheng <zhshzhou at linux.vnet.ibm.com>
> ---
>  Makefile.am | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/Makefile.am b/Makefile.am
> index ca5623d..85949d8 100644
> --- a/Makefile.am
> +++ b/Makefile.am
> @@ -81,7 +81,7 @@ I18N_FILES = plugins/*/i18n.py \
>  	$(NULL)
> 
>  check-local:
> -	contrib/check_i18n.py $(I18N_FILES)
> +	PYTHONPATH=src contrib/check_i18n.py $(I18N_FILES)
>  	find . -path './.git' -prune -type f -o \
>  		-name '*.py' -o -name '*.py.in'  | xargs $(PYFLAKES) | \
>  		grep -w -v $(SKIP_PYFLAKES_ERR) | \
> 


-- 
Thanks and best regards!

Zhou Zheng Sheng / 周征晟
E-mail: zhshzhou at linux.vnet.ibm.com
Telephone: 86-10-82454397




More information about the Kimchi-devel mailing list