Lines Matching +full:packages +full:- +full:dir
1 """Utilities to support packages."""
27 """Return the finder-specific module spec."""
63 Note that this function must import all *packages* (NOT all
112 or, if path is None, all top-level modules on sys.path.
155 filenames.sort() # handle packages before same-named modules
199 the current sys.path, plus any modules that are frozen or built-in.
215 subname = fullname.split(".")[-1]
239 filenames.sort() # handle packages before same-named modules
347 if os.path.exists(self.filename[:-1]):
348 with open(self.filename[:-1], 'r') as f:
521 except that it doesn't special-case lines starting with 'import'.
528 packages) it is returned unchanged. The input path is not
533 are not (unicode or 8-bit) strings referring to existing
559 for dir in search_path:
560 if not isinstance(dir, str):
563 finder = get_importer(dir)
576 # case-insensitive filesystems
582 pkgfile = os.path.join(dir, sname_pkg)
612 For packages located in the filesystem, which have already been imported,
635 # signature - an os.path format "filename" starting with the dirname of
651 for a literal period in these pseudo-regexes:
672 ValueError - if `name` isn't in a recognised format
673 ImportError - if an import failed when it shouldn't have
674 AttributeError - if a failure occurred when traversing the object hierarchy
691 # there is a colon - a one-step import is all that's needed
696 # no colon - have to iterate to find the package boundary