def command_names(): names = set((pkg[1] for pkg in walk_packages(path=commands.__path__))) return list(names)
def version_control(): # Import all the version control support modules: from pip import vcs for importer, modname, ispkg in \ walk_packages(path=vcs.__path__, prefix=vcs.__name__+'.'): __import__(modname)