Allow simple listing and loading of the various becommands and libbe submodules (i.e. “plugins”).
>>> mod = import_by_name('libbe.bugdir') >>> 'BugDir' in dir(mod) True >>> import_by_name('libbe.highly_unlikely') Traceback (most recent call last): ... ImportError: No module named highly_unlikely
>>> 'list' in [n for n in modnames('libbe.command')] True >>> 'plugin' in [n for n in modnames('libbe.util')] True
Lists items in a directory contained in a zip file