mirror of
				https://github.com/eclipse/upm.git
				synced 2025-10-31 07:04:14 +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:
		| @@ -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: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Noel Eck
					Noel Eck