Home
last modified time | relevance | path

Searched refs:load_module (Results 1 – 25 of 89) sorted by relevance

1234

/external/python/cpython3/Lib/test/test_importlib/extension/
Dtest_loader.py22 def load_module(self, fullname): member in LoaderTests
23 return self.loader.load_module(fullname)
27 self.loader.load_module()
28 self.loader.load_module(None)
30 self.load_module('XXX')
44 module = self.load_module(util.EXTENSIONS.name)
61 module1 = self.load_module(util.EXTENSIONS.name)
62 module2 = self.load_module(util.EXTENSIONS.name)
71 self.load_module(name)
109 module = self.load_module()
[all …]
/external/epid-sdk/parts-site/configurations/
D__init__.py18 import parts.load_module as load_module namespace
24 mod = load_module.load_module(
25 load_module.get_site_directories('configurations'), type_name, 'configtype')
/external/python/cpython3/Lib/test/test_importlib/builtin/
Dtest_loader.py26 def load_module(self, name): member in LoaderTests
27 return self.machinery.BuiltinImporter.load_module(name)
32 module = self.load_module(util.BUILTINS.good_name)
44 module1 = self.load_module(util.BUILTINS.good_name)
45 module2 = self.load_module(util.BUILTINS.good_name)
52 self.load_module(name)
64 self.load_module(module_name)
/external/python/cpython3/Lib/test/test_importlib/frozen/
Dtest_loader.py98 module = self.machinery.FrozenImporter.load_module('__hello__')
112 module = self.machinery.FrozenImporter.load_module('__phello__')
131 module = self.machinery.FrozenImporter.load_module('__phello__.spam')
148 module1 = self.machinery.FrozenImporter.load_module('__hello__')
149 module2 = self.machinery.FrozenImporter.load_module('__hello__')
158 module = self.machinery.FrozenImporter.load_module('__hello__')
165 module = self.machinery.FrozenImporter.load_module('__hello__')
175 self.machinery.FrozenImporter.load_module('_not_real')
/external/python/cpython3/Lib/test/test_importlib/import_/
Dtest_caching.py55 original_load = mock.load_module
56 def load_module(self, fullname): function
59 mock.load_module = MethodType(load_module, mock)
/external/python/cpython2/Lib/
Dihooks.py142 def load_module(self, name, stuff): member in BasicModuleLoader
145 return imp.load_module(name, file, filename, info)
176 return imp.load_module(name, file, filename, ("", "", PKG_DIRECTORY))
261 def load_module(self, name, stuff): member in ModuleLoader
290 def load_module(self, name, stuff): member in FancyModuleLoader
321 return ModuleLoader.load_module(self, name, stuff)
369 return self.loader.load_module(name, stuff)
376 return self.loader.load_module(name, stuff)
529 m = self.loader.load_module(fqname, stuff)
Dmodulefinder.py133 self.load_module('__main__', fp, pathname, stuff)
140 self.load_module(name, fp, pathname, stuff)
293 m = self.load_module(fqname, fp, pathname, stuff)
301 def load_module(self, fqname, fp, pathname, file_info): member in ModuleFinder
468 self.load_module(fqname, fp, buf, stuff)
Dpkgutil.py240 def load_module(self, fullname): member in ImpLoader
243 mod = imp.load_module(fullname, self.file, self.filename, self.etc)
579 mod = sys.modules.get(package) or loader.load_module(package)
/external/autotest/client/cros/
Dfactory_setup_modules.py22 cros = imp.load_module('cros', None, '', ('', '', imp.PKG_DIRECTORY))
25 cros.factory = imp.load_module(
/external/selinux/semodule-utils/semodule_link/
Dsemodule_link.c35 static sepol_module_package_t *load_module(char *filename) in load_module() function
117 base = load_module(basename); in main()
136 mods[i] = load_module(argv[optind]); in main()
/external/python/cpython3/Lib/test/test_importlib/source/
Dtest_file_loader.py47 module = loader.load_module() # Should not raise an exception.
80 module = loader.load_module('_temp')
93 module = loader.load_module('_pkg')
108 module = loader.load_module('_pkg.mod')
124 module = loader.load_module('_temp')
131 module = loader.load_module('_temp')
158 loader.load_module(name)
171 loader.load_module('_temp')
185 mod = loader.load_module('_temp')
223 mod = loader.load_module('_temp')
[all …]
Dtest_source_encoding.py110 return loader.load_module(self.module_name)
166 return loader.load_module(module_name)
/external/python/cpython3/Python/
Dmakeopcodetargets.py20 return imp.load_module(modname, *imp.find_module(modname, [modpath]))
27 return SourceFileLoader(modname, modpath).load_module()
/external/python/cpython3/Lib/importlib/
Dabc.py153 def load_module(self, fullname): member in Loader
247 load_module = _bootstrap_external._LoaderBasics.load_module variable in InspectLoader
/external/python/cpython2/Lib/test/
Dtest_importhooks.py68 def load_module(self, fullname): member in TestImporter
98 def load_module(self, fullname): member in ImportBlocker
131 def load_module(self, fullname): member in ImpLoader
132 mod = imp.load_module(fullname, self.file, self.filename, self.stuff)
Dtest_zipimport.py219 mod = zi.load_module(TESTPACK)
264 mod = zi.load_module(TESTPACK2)
443 self.assertRaises(TypeError, z.load_module, None)
452 self.assertRaises(error, z.load_module, 'abc')
/external/python/setuptools/setuptools/
Dsite-patch.py22 loader.load_module('site')
34 imp.load_module('site', stream, path, descr)
/external/python/cpython3/Lib/test/test_importlib/
Dtest_util.py168 def load_module(self, module): member in ModuleForLoaderTests.test_reload.FakeLoader
177 returned_module = loader.load_module(name)
228 def load_module(self, module): member in ModuleForLoaderTests.test_attributes_set.FakeLoader
234 module = loader.load_module(name)
242 module = loader.load_module(name)
325 def load_module(self, module): member in SetLoaderTests.DummyLoader.DummyLoader
339 self.assertEqual(loader, loader.load_module('blah').__loader__)
347 self.assertEqual(loader, loader.load_module('blah').__loader__)
355 self.assertEqual(42, loader.load_module('blah').__loader__)
Dtest_abc.py204 def load_module(self, fullname): member in Loader
205 return super().load_module(fullname)
218 self.ins.load_module('something')
450 loader.load_module(name)
469 loader.load_module(name)
829 module = self.loader.load_module(self.name)
842 module = self.loader.load_module(self.name)
/external/python/cpython3/Lib/test/
Dtest_imp.py168 mod = imp.load_module(temp_mod_name, file, filename, info)
219 new_os = imp.load_module("os", *x)
233 mod = imp.load_module(example, *x)
274 imp.load_module(name, None, *found[1:])
365 mod = imp.load_module('mymod', file, path, description)
Dtest_zipimport.py439 load_mod = find_mod.load_module('spam')
442 mod = zi.load_module(TESTPACK)
493 mod = zi.load_module(TESTPACK2)
507 load_mod = find_mod_dotted.load_module(TESTMOD)
666 zipimport.zipimporter(filename).load_module(TESTMOD)
692 self.assertRaises(ValueError, zi.load_module, 'foo')
775 self.assertRaises(TypeError, z.load_module, None)
784 self.assertRaises(error, z.load_module, 'abc')
/external/autotest/client/site_tests/kernel_Ktime/
Dkernel_Ktime.py158 utils.load_module(self.MODULE_NAME)
160 utils.load_module(self.MODULE_NAME_NEW)
/external/python/cpython3/Lib/
Dmodulefinder.py109 self.load_module('__main__', fp, pathname, stuff)
116 self.load_module(name, fp, pathname, stuff)
270 m = self.load_module(fqname, fp, pathname, stuff)
279 def load_module(self, fqname, fp, pathname, file_info): member in ModuleFinder
423 self.load_module(fqname, fp, buf, stuff)
/external/antlr/runtime/Python3/
Dsetup.py115 testMod = imp.load_module(
240 testMod = imp.load_module(
/external/python/cpython2/Python/
Dmakeopcodetargets.py18 return imp.load_module(modname, *imp.find_module(modname, [modpath]))

1234