diff options
Diffstat (limited to 'testsuite/Testsrc/test_code_checks.py')
-rw-r--r-- | testsuite/Testsrc/test_code_checks.py | 4 |
1 files changed, 3 insertions, 1 deletions
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}') |