class xonsh.lib.modules.ModuleFinder(*names: str)[source]#

Reusable module matcher. Can be used by other completers like Python to find matching script completions

Helper class to search and load Python modules


extra search paths/package-names to use if finding module on namespace package fails. paths should have a path literal to indicate it is a path. Otherwise it is treated as a package name.

get_module(module: str)[source]#
static import_module(path, name: str)[source]#

given the file location import as module

extensions = ('.py', '.xsh')#