From f59ffca1708a308abcb156773b4ae2174eab7b34 Mon Sep 17 00:00:00 2001 From: dbs Date: Mon, 18 Apr 2011 05:14:41 +0000 Subject: [PATCH] Enable relative paths in i18n testing scripts We were 98% of the way there; now we no longer need to cd into the same directory as the i18n testing scripts to run them with meaningful output. Should be useful for adding these to the CI server. git-svn-id: svn://svn.open-ils.org/ILS/trunk@20148 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- build/i18n/tests/check_entities.py | 2 +- build/i18n/tests/check_properties.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build/i18n/tests/check_entities.py b/build/i18n/tests/check_entities.py index 3dce59c33e..d9d8818c5f 100755 --- a/build/i18n/tests/check_entities.py +++ b/build/i18n/tests/check_entities.py @@ -124,7 +124,7 @@ def check_files(entities): xul_files = [] for x_dir in XML_DIRS: - for root, dirs, files in os.walk(x_dir): + for root, dirs, files in os.walk(os.path.join(basedir, x_dir)): for x_file in files: if os.path.splitext(x_file)[1] == '.xul' or \ os.path.splitext(x_file)[1] == '.html' or \ diff --git a/build/i18n/tests/check_properties.py b/build/i18n/tests/check_properties.py index e2b9e4212b..410781ecea 100755 --- a/build/i18n/tests/check_properties.py +++ b/build/i18n/tests/check_properties.py @@ -113,7 +113,7 @@ def check_xul_files(props): xul_files = [] for x_dir in XUL_DIRS: - for root, dirs, files in os.walk(x_dir): + for root, dirs, files in os.walk(os.path.join(basedir, x_dir)): for x_file in files: if os.path.splitext(x_file)[1] == '.xul' or os.path.splitext(x_file)[1] == '.js': check_xul(root, x_file, props) -- 2.11.0