diff --git a/tests/check_pythonload.py b/tests/check_pythonload.py index 8b064e42..2ae72ae6 100755 --- a/tests/check_pythonload.py +++ b/tests/check_pythonload.py @@ -51,6 +51,9 @@ class loadModule(unittest.TestCase): print('Skipping blacklisted %s ...' % pyfile) continue + # Append the path of this python module + sys.path.append(os.path.dirname(pyfile)) + try: pyfile = imp.load_source(module, pyfile) except Exception as x: