mirror of
https://github.com/eclipse/upm.git
synced 2025-03-14 20:47:30 +03:00
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:
parent
76dd42a47d
commit
090ce2040e
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user