ctest: Add module path to sys path

Updated the pythonloader test module to always append the module's path
to the system path.

Signed-off-by: Noel Eck <noel.eck@intel.com>
This commit is contained in:
Noel Eck 2018-03-15 11:10:00 -07:00
parent 76dd42a47d
commit 090ce2040e

View File

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