Lines Matching refs:path
62 def find_module(self, fullname, path=None):
64 The fullname is a str and the optional path is a str or None.
82 def find_module(self, fullname, path):
86 the path is a list of strings or None.
100 found = self.find_spec(fullname, path)
114 """Abstract base class for path entry finders used by PathFinder."""
120 """Return (loader, namespace portion) for the path entry.
123 path entries contributing to part of a namespace package. The
127 The portion will be discarded if another path entry finder
171 def get_data(self, path):
173 the specified path. The path must be a str."""
217 def source_to_code(data, path='<string>'):
220 The 'data' argument can be anything that compile() can handle. The'path'
222 return compile(data, path, 'exec', dont_inherit=True)
258 path = self.get_filename(fullname)
262 return self.source_to_code(source, path)
293 def path_mtime(self, path):
294 """Return the (int) modification time for the path (str)."""
297 return int(self.path_stats(path)['mtime'])
299 def path_stats(self, path):
300 """Return a metadata dict for the source pointed to by the path (str).
308 return {'mtime': self.path_mtime(path)}
310 def set_data(self, path, data):
311 """Write the bytes to the path (if possible).
313 Accepts a str path and data as bytes.