Lines Matching refs:path
7 readmodule_ex(module, path=None)
8 where module is the name of a Python module, and path is an optional
10 path is prepended to the system search path sys.path. The return value
16 contains the package search path.
100 def readmodule(module, path=None):
107 for key, value in _readmodule(module, path or []).items():
112 def readmodule_ex(module, path=None):
115 Search for module in PATH + sys.path.
119 return _readmodule(module, path or [])
122 def _readmodule(module, path, inpackage=None):
127 package search path; otherwise, we are searching for a top-level
128 module, and path is combined with sys.path.
153 parent = _readmodule(package, path, inpackage)
160 # Search the path for the module.
163 search_path = path
165 search_path = path + sys.path
183 return _create_tree(fullmodule, path, fname, source, tree, inpackage)
187 def __init__(self, module, path, file, tree, inpackage):
188 self.path = path
240 _readmodule(module.name, self.path, self.inpackage)
255 module = _readmodule(module, self.path, self.inpackage)
269 def _create_tree(fullmodule, path, fname, source, tree, inpackage):
270 mbrowser = _ModuleBrowser(fullmodule, path, fname, tree, inpackage)
282 if os.path.exists(mod):
283 path = [os.path.dirname(mod)]
284 mod = os.path.basename(mod)
288 path = []
289 tree = readmodule_ex(mod, path)