From: dbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Date: Mon, 18 Apr 2011 05:14:41 +0000 (+0000)
Subject: Enable relative paths in i18n testing scripts
X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=f59ffca1708a308abcb156773b4ae2174eab7b34;p=evergreen%2Fbjwebb.git

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
---

diff --git a/build/i18n/tests/check_entities.py b/build/i18n/tests/check_entities.py
index 3dce59c33..d9d8818c5 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 e2b9e4212..410781ece 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)