Lines Matching +full:read +full:- +full:pkg
20 magic = stream.read(4)
24 stream.read(4) # Skip timestamp
29 """Make a trivial single-dispatch generic function"""
128 or, if path is None, all top-level modules on sys.path.
164 the current sys.path, plus any modules that are frozen or built-in.
175 subname = fullname.split(".")[-1]
199 filenames.sort() # handle packages before same-named modules
253 return file.read()
299 self.source = self.file.read()
303 if os.path.exists(self.filename[:-1]):
304 f = open(self.filename[:-1], 'rU')
305 self.source = f.read()
426 pkg = '.'.join(fullname.split('.')[:-1])
427 if pkg not in sys.modules:
428 __import__(pkg)
429 path = getattr(sys.modules[pkg], '__path__', None) or []
449 limitations regarding platform-specific special import locations such
470 platform-specific special import locations such as the Windows registry.
493 It also looks for *.pkg files beginning where * matches the name
495 except that it doesn't special-case lines starting with 'import'.
496 A *.pkg file is trusted at face value: apart from checking for
497 duplicates, all entries found in a *.pkg file are added to the
507 are not (unicode or 8-bit) strings referring to existing
521 sname_pkg = sname + os.extsep + "pkg"
531 # case-insensitive filesystems
536 # It looks for a file named "zope.app.pkg"
570 data = open(os.path.join(d, resource), 'rb').read()
584 # signature - an os.path format "filename" starting with the dirname of