Home
last modified time | relevance | path

Searched refs:fullname (Results 1 – 25 of 295) sorted by relevance

12345678910>>...12

/external/python/cpython2/Lib/
Dpkgutil.py173 def find_module(self, fullname, path=None): argument
175 subname = fullname.split(".")[-1]
176 if subname != fullname and self.path is None:
186 return ImpLoader(fullname, file, filename, etc)
234 def __init__(self, fullname, file, filename, etc): argument
237 self.fullname = fullname
240 def load_module(self, fullname): argument
243 mod = imp.load_module(fullname, self.file, self.filename, self.etc)
263 def _fix_name(self, fullname): argument
264 if fullname is None:
[all …]
Dcompileall.py44 fullname = os.path.join(dir, name)
49 if not os.path.isdir(fullname):
50 if not compile_file(fullname, ddir, force, rx, quiet):
54 os.path.isdir(fullname) and \
55 not os.path.islink(fullname):
56 if not compile_dir(fullname, maxlevels - 1, dfile, force, rx,
61 def compile_file(fullname, ddir=None, force=0, rx=None, quiet=0): argument
73 name = os.path.basename(fullname)
79 mo = rx.search(fullname)
82 if os.path.isfile(fullname):
[all …]
Dlinecache.py60 size, mtime, lines, fullname = cache[filename]
64 stat = os.stat(fullname)
82 fullname = filename
84 stat = os.stat(fullname)
106 [line+'\n' for line in data.splitlines()], fullname
119 fullname = os.path.join(dirname, basename)
124 stat = os.stat(fullname)
131 with open(fullname, 'rU') as fp:
138 cache[filename] = size, mtime, lines, fullname
/external/python/cpython3/Lib/
Dzipimport.py110 def find_loader(self, fullname, path=None): argument
125 mi = _get_module_info(self, fullname)
135 modpath = _get_module_path(self, fullname)
147 def find_module(self, fullname, path=None): argument
161 return self.find_loader(fullname, path)[0]
163 def find_spec(self, fullname, target=None): argument
168 module_info = _get_module_info(self, fullname)
170 return _bootstrap.spec_from_loader(fullname, self, is_package=module_info)
177 modpath = _get_module_path(self, fullname)
183 spec = _bootstrap.ModuleSpec(name=fullname, loader=None,
[all …]
Dpkgutil.py213 def find_module(self, fullname, path=None): argument
215 subname = fullname.split(".")[-1]
216 if subname != fullname and self.path is None:
226 return ImpLoader(fullname, file, filename, etc)
274 def __init__(self, fullname, file, filename, etc): argument
281 self.fullname = fullname
284 def load_module(self, fullname): argument
287 mod = imp.load_module(fullname, self.file, self.filename, self.etc)
307 def _fix_name(self, fullname): argument
308 if fullname is None:
[all …]
Dcompileall.py40 fullname = os.path.join(dir, name)
41 if not os.path.isdir(fullname):
42 yield fullname
44 os.path.isdir(fullname) and not os.path.islink(fullname)):
45 yield from _walk_dir(fullname, maxlevels=maxlevels - 1,
125 def compile_file(fullname, ddir=None, force=False, rx=None, quiet=0, argument
157 if quiet < 2 and isinstance(fullname, os.PathLike):
158 fullname = os.fspath(fullname)
159 name = os.path.basename(fullname)
167 fullname_parts = fullname.split(os.path.sep)
[all …]
Dlinecache.py68 size, mtime, lines, fullname = entry
72 stat = os.stat(fullname)
91 fullname = filename
93 stat = os.stat(fullname)
113 fullname
124 fullname = os.path.join(dirname, basename)
129 stat = os.stat(fullname)
136 with tokenize.open(fullname) as fp:
143 cache[filename] = size, mtime, lines, fullname
/external/python/cpython3/Lib/importlib/
D_bootstrap_external.py565 def _find_module_shim(self, fullname): argument
578 loader, portions = self.find_loader(fullname)
814 def _search_registry(cls, fullname): argument
819 key = registry_key.format(fullname=fullname,
829 def find_spec(cls, fullname, path=None, target=None): argument
830 filepath = cls._search_registry(fullname)
839 spec = _bootstrap.spec_from_loader(fullname,
840 loader(fullname, filepath),
845 def find_module(cls, fullname, path=None): argument
854 spec = cls.find_spec(fullname, path)
[all …]
Dabc.py51 def find_module(self, fullname, path=None): argument
71 def find_module(self, fullname, path): argument
89 found = self.find_spec(fullname, path)
108 def find_loader(self, fullname): argument
130 found = self.find_spec(fullname)
175 def is_package(self, fullname): argument
183 def get_code(self, fullname): argument
191 source = self.get_source(fullname)
197 def get_source(self, fullname): argument
229 def get_filename(self, fullname): argument
[all …]
D_bootstrap.py254 def _requires_builtin_wrapper(self, fullname): argument
255 if fullname not in sys.builtin_module_names:
256 raise ImportError('{!r} is not a built-in module'.format(fullname),
257 name=fullname)
258 return fxn(self, fullname)
265 def _requires_frozen_wrapper(self, fullname): argument
266 if not _imp.is_frozen(fullname):
267 raise ImportError('{!r} is not a frozen module'.format(fullname),
268 name=fullname)
269 return fxn(self, fullname)
[all …]
Dutil.py90 fullname = resolve_name(name, package) if name.startswith('.') else name
91 if fullname not in sys.modules:
92 parent_name = fullname.rpartition('.')[0]
100 f"while trying to find {fullname!r}", name=fullname) from e
103 return _find_spec(fullname, parent_path)
105 module = sys.modules[fullname]
204 def module_for_loader_wrapper(self, fullname, *args, **kwargs): argument
205 with _module_to_load(fullname) as module:
208 is_package = self.is_package(fullname)
213 module.__package__ = fullname
[all …]
/external/tensorflow/tensorflow/core/util/
Ddevice_name_utils.cc104 bool DeviceNameUtils::ParseFullName(StringPiece fullname, ParsedName* p) { in ParseFullName() argument
106 if (fullname == "/") { in ParseFullName()
109 while (!fullname.empty()) { in ParseFullName()
111 if (absl::ConsumePrefix(&fullname, "/job:")) { in ParseFullName()
112 p->has_job = !absl::ConsumePrefix(&fullname, "*"); in ParseFullName()
113 if (p->has_job && !ConsumeJobName(&fullname, &p->job)) { in ParseFullName()
118 if (absl::ConsumePrefix(&fullname, "/replica:")) { in ParseFullName()
119 p->has_replica = !absl::ConsumePrefix(&fullname, "*"); in ParseFullName()
120 if (p->has_replica && !ConsumeNumber(&fullname, &p->replica)) { in ParseFullName()
125 if (absl::ConsumePrefix(&fullname, "/task:")) { in ParseFullName()
[all …]
/external/e2fsprogs/debugfs/
Ddump.c200 const char *fullname) in rdump_symlink() argument
240 if (symlink(buf, fullname) == -1) { in rdump_symlink()
241 com_err("rdump", errno, "while creating symlink %s -> %s", buf, fullname); in rdump_symlink()
254 char *fullname; in rdump_inode() local
258 fullname = malloc(strlen(dumproot) + strlen(name) + 2); in rdump_inode()
259 if (!fullname) { in rdump_inode()
263 sprintf(fullname, "%s/%s", dumproot, name); in rdump_inode()
266 rdump_symlink(ino, inode, fullname); in rdump_inode()
269 fd = open(fullname, O_WRONLY | O_CREAT | O_TRUNC | O_LARGEFILE, S_IRWXU); in rdump_inode()
271 com_err("rdump", errno, "while opening %s", fullname); in rdump_inode()
[all …]
/external/testng/ant/
Dbuild.properties6 testng.fullname=${testng.basename}-${testng.version}
41 testng.jar=${target}/${testng.fullname}.jar
42 testng.dist.jar=${testng.fullname}-dist.jar
43 sources.testng.jar=${testng.fullname}-sources.jar
44 testng.junit.jar=${testng.fullname}-junit.jar
45 testng.nobsh.noguice.jar=${testng.fullname}-nobsh-noguice.jar
46 testng.bsh.noguice.jar=${testng.fullname}-bsh-noguice.jar
47 testng.nobsh.guice.jar=${testng.fullname}-nobsh-guice.jar
48 testng.ibiblio.jar=${testng.fullname}-bundle.jar
49 testng.zip=${target}/${testng.fullname}.zip
[all …]
/external/python/cpython2/Tools/scripts/
Dcvsfiles.py43 fullname = os.path.join(dir, name)
45 cvsdir = fullname
47 if os.path.isdir(fullname):
48 if not os.path.islink(fullname):
49 subdirs.append(fullname)
56 fullname = os.path.join(dir, name)
57 if cutofftime and getmtime(fullname) <= cutofftime:
60 print fullname
/external/python/setuptools/setuptools/extern/
D__init__.py24 def _module_matches_namespace(self, fullname): argument
26 root, base, target = fullname.partition(self.root_name + '.')
29 def load_module(self, fullname): argument
33 root, base, target = fullname.partition(self.root_name + '.')
39 sys.modules[fullname] = mod
57 def find_spec(self, fullname, path=None, target=None): argument
60 importlib.util.spec_from_loader(fullname, self)
61 if self._module_matches_namespace(fullname) else None
/external/python/setuptools/pkg_resources/extern/
D__init__.py24 def _module_matches_namespace(self, fullname): argument
26 root, base, target = fullname.partition(self.root_name + '.')
29 def load_module(self, fullname): argument
33 root, base, target = fullname.partition(self.root_name + '.')
39 sys.modules[fullname] = mod
57 def find_spec(self, fullname, path=None, target=None): argument
60 importlib.util.spec_from_loader(fullname, self)
61 if self._module_matches_namespace(fullname) else None
/external/dtc/
Dsrcpos.c102 char *fullname; in try_open() local
105 fullname = xstrdup(fname); in try_open()
107 fullname = join_path(dirname, fname); in try_open()
109 *fp = fopen(fullname, "rb"); in try_open()
111 free(fullname); in try_open()
112 fullname = NULL; in try_open()
115 return fullname; in try_open()
131 char *fullname; in fopen_any_on_path() local
137 fullname = try_open(cur_dir, fname, fp); in fopen_any_on_path()
141 fullname = try_open(node->dirname, fname, fp); in fopen_any_on_path()
[all …]
/external/mesa3d/src/freedreno/rnn/
Dpath.c44 char *fullname; in find_in_path() local
46 int ret = asprintf(&fullname, "%.*s/%s%s", (int)plen, path, name, exts[i]); in find_in_path()
50 FILE *file = fopen(fullname, "r"); in find_in_path()
53 *pfullname = fullname; in find_in_path()
55 free(fullname); in find_in_path()
58 free(fullname); in find_in_path()
/external/autotest/utils/
DPython2MigrationFinder.py25 def need_to_skip(fullname): argument
36 if match in fullname:
58 fullname = os.path.join(upper_dir, filename)
59 if need_to_skip(fullname):
61 if os.path.isdir(fullname):
62 list_files_to_txt(fullname, file, suffix, nums_line_to_check)
66 filename = fullname
/external/python/cpython2/Lib/test/
Dtest_importhooks.py62 def find_module(self, fullname, path=None): argument
63 if fullname in self.modules:
68 def load_module(self, fullname): argument
69 ispkg, code = self.modules[fullname]
70 mod = sys.modules.setdefault(fullname,imp.new_module(fullname))
94 def find_module(self, fullname, path=None): argument
95 if fullname in self.namestoblock:
98 def load_module(self, fullname): argument
109 def find_module(self, fullname, path=None): argument
110 subname = fullname.split(".")[-1]
[all …]
/external/python/cpython2/Modules/
Dzipimport.c49 static PyObject *get_module_code(ZipImporter *self, char *fullname,
211 get_subname(char *fullname) in get_subname() argument
213 char *subname = strrchr(fullname, '.'); in get_subname()
215 subname = fullname; in get_subname()
258 get_module_info(ZipImporter *self, char *fullname) in get_module_info() argument
264 subname = get_subname(fullname); in get_module_info()
289 char *fullname; in zipimporter_find_module() local
293 &fullname, &path)) in zipimporter_find_module()
296 mi = get_module_info(self, fullname); in zipimporter_find_module()
313 char *fullname, *modpath; in zipimporter_load_module() local
[all …]
/external/python/cpython2/Demo/threads/
Dfind.py125 def selector(dir, name, fullname, stat): argument
140 fullname = os.path.join(dir, name)
142 stat = os.lstat(fullname)
144 print repr(fullname), ':', msg
146 if pred(dir, name, fullname, stat):
147 print fullname
149 if not os.path.ismount(fullname):
150 wq.addwork(find, (fullname, pred, wq))
/external/protobuf/php/ext/google/protobuf/
Dnames.c203 static void fill_classname(const char *fullname, in fill_classname() argument
213 size_t fullname_len = strlen(fullname); in fill_classname()
218 while (j < fullname_len && fullname[j] != '.') { in fill_classname()
221 fill_prefix(fullname + i, j - i, prefix, package, classname, previous); in fill_classname()
222 fill_segment(fullname + i, j - i, classname, false); in fill_classname()
237 char *GetPhpClassname(const upb_FileDef *file, const char *fullname, bool previous) { in GetPhpClassname() argument
257 fill_classname(fullname, package, prefix, &namesink, previous); in GetPhpClassname()
266 bool IsPreviouslyUnreservedClassName(const char* fullname) { in IsPreviouslyUnreservedClassName() argument
267 const char *classname = strrchr(fullname, '\\'); in IsPreviouslyUnreservedClassName()
271 classname = fullname; in IsPreviouslyUnreservedClassName()
/external/python/cpython3/Lib/test/
Dtest_pkg.py15 fullname = os.path.join(root, name)
16 if os.path.isdir(fullname) and not os.path.islink(fullname):
17 cleanout(fullname)
19 os.remove(fullname)
80 fullname = root
82 fullname = os.path.join(fullname, c)
84 os.mkdir(fullname)
86 with open(fullname, "w") as f:

12345678910>>...12