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

shaohef at linux.vnet.ibm.com shaohef at linux.vnet.ibm.com
Tue Apr 22 07:42:22 UTC 2014


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) | \
-- 
1.9.0




More information about the Kimchi-devel mailing list