From 676ea27c515a48f3c0e5cb8ec58fb14a9f93d5e5 Mon Sep 17 00:00:00 2001 From: "Chris St. Pierre" Date: Tue, 25 Sep 2012 17:08:01 -0400 Subject: add to path in pylint for testing --- testsuite/Testsrc/test_code_checks.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/testsuite/Testsrc/test_code_checks.py b/testsuite/Testsrc/test_code_checks.py index fbca427f7..5f956cf3b 100644 --- a/testsuite/Testsrc/test_code_checks.py +++ b/testsuite/Testsrc/test_code_checks.py @@ -98,7 +98,9 @@ def expand_path_dict(pathdict): class TestPylint(Bcfg2TestCase): - pylint_cmd = ["pylint", "--rcfile", rcfile] + pylint_cmd = ["pylint", "--rcfile", rcfile, "--init-hook", + "import sys;sys.path.append('%s')" % + os.path.join(srcpath, "lib")] # regex to find errors and fatal errors error_re = re.compile(r':\d+:\s+\[[EF]\d{4}') -- cgit v1.2.3-1-g7c22