Home
last modified time | relevance | path

Searched refs:modpath (Results 1 – 13 of 13) sorted by relevance

/external/selinux/libsemanage/tests/
Dtest_semanage_store.c52 const char *modpath = "./test-policy/store/active/modules"; variable
74 err = mkdir(modpath, S_IRUSR | S_IWUSR | S_IXUSR); in semanage_store_test_init()
106 err = rmdir(modpath); in semanage_store_test_cleanup()
163 err = chmod(modpath, 0); in test_semanage_store_access_check()
178 err = chmod(modpath, S_IRUSR | S_IXUSR); in test_semanage_store_access_check()
189 err = chmod(modpath, S_IRUSR | S_IWUSR | S_IXUSR); in test_semanage_store_access_check()
200 err = chmod(modpath, S_IRUSR | S_IXUSR); in test_semanage_store_access_check()
211 err = chmod(modpath, S_IRUSR | S_IWUSR | S_IXUSR); in test_semanage_store_access_check()
222 err = chmod(modpath, 0); in test_semanage_store_access_check()
233 err = chmod(modpath, S_IRUSR | S_IXUSR); in test_semanage_store_access_check()
[all …]
/external/python/cpython3/Python/
Dmakeopcodetargets.py18 modpath = os.path.join(
20 return imp.load_module(modname, *imp.find_module(modname, [modpath]))
25 modpath = os.path.join(
27 return SourceFileLoader(modname, modpath).load_module()
/external/python/cpython2/Lib/test/
Dtest___all__.py50 def walk_modules(self, basedir, modpath): argument
56 yield pkg_init, modpath + fn
57 for p, m in self.walk_modules(path, modpath + fn + "."):
62 yield path, modpath + fn[:-3]
/external/python/cpython3/Lib/test/
Dtest___all__.py49 def walk_modules(self, basedir, modpath): argument
55 yield pkg_init, modpath + fn
56 for p, m in self.walk_modules(path, modpath + fn + "."):
61 yield path, modpath + fn[:-3]
/external/python/cpython3/Modules/
Dzipimport.c463 PyObject *modpath = NULL; in zipimporter_load_module() local
472 code = get_module_code(self, fullname, &ispackage, &modpath); in zipimporter_load_module()
510 mod = PyImport_ExecCodeModuleObject(fullname, code, modpath, NULL); in zipimporter_load_module()
517 fullname, modpath); in zipimporter_load_module()
518 Py_DECREF(modpath); in zipimporter_load_module()
522 Py_XDECREF(modpath); in zipimporter_load_module()
531 PyObject *fullname, *code, *modpath; in zipimporter_get_filename() local
540 code = get_module_code(self, fullname, &ispackage, &modpath); in zipimporter_get_filename()
545 return modpath; in zipimporter_get_filename()
1436 PyObject *data, *modpath, *code; in get_code_from_data() local
[all …]
/external/python/cpython2/Python/
Dmakeopcodetargets.py16 modpath = os.path.join(
18 return imp.load_module(modname, *imp.find_module(modname, [modpath]))
Dimport.c2339 PyObject *pkgname, *modname, *modpath, *modules, *parent; in get_parent() local
2394 modpath = PyDict_GetItem(globals, pathstr); in get_parent()
2395 if (modpath != NULL) { in get_parent()
/external/python/cpython2/Modules/
Dzipimport.c315 char *fullname, *modpath; in zipimporter_load_module() local
322 code = get_module_code(self, fullname, &ispackage, &modpath); in zipimporter_load_module()
362 mod = PyImport_ExecCodeModuleEx(fullname, code, modpath); in zipimporter_load_module()
366 fullname, modpath); in zipimporter_load_module()
380 char *fullname, *modpath; in zipimporter_get_filename() local
389 code = get_module_code(self, fullname, &ispackage, &modpath); in zipimporter_get_filename()
394 return PyString_FromString(modpath); in zipimporter_get_filename()
1208 char *modpath; in get_code_from_data() local
1218 modpath = PyString_AsString(PyTuple_GetItem(toc_entry, 0)); in get_code_from_data()
1221 code = unmarshal_code(modpath, data, mtime); in get_code_from_data()
[all …]
/external/autotest/utils/
Drun_pylint.py40 def file_from_modpath(modpath, path=None, context_file=None): argument
50 if modpath[0] == "autotest_lib":
51 return _ffm(modpath[1:], path, context_file)
53 return _ffm(modpath, path, context_file)
/external/python/cpython3/Lib/test/test_importlib/
Dutil.py150 modpath = os.path.join(location, '__init__.py')
153 modpath = location + '.py'
159 with open(modpath, 'w') as modfile:
/external/python/cpython3/Lib/distutils/command/
Dbuild_ext.py645 modpath = fullname.split('.')
646 filename = self.get_ext_filename(modpath[-1])
652 filename = os.path.join(*modpath[:-1]+[filename])
657 package = '.'.join(modpath[0:-1])
/external/python/cpython2/Lib/distutils/tests/
Dsetuptools_build_ext.py58 modpath = fullname.split('.')
59 package = '.'.join(modpath[:-1])
/external/python/cpython2/Lib/distutils/command/
Dbuild_ext.py636 modpath = fullname.split('.')
644 filename = os.path.join(*modpath[:-1]+[filename])
649 package = '.'.join(modpath[0:-1])