Added API.load_plugins() place-holder, which cascades call to API.bootstrap()

This commit is contained in:
Jason Gerard DeRose
2008-10-26 23:53:44 -06:00
parent 6b8abb0d78
commit 4fe03f5e17
2 changed files with 26 additions and 0 deletions

View File

@@ -735,9 +735,22 @@ class API(DictProxy):
"""
self.__doing('bootstrap')
def load_plugins(self, dry_run=False):
"""
Load plugins from all standard locations.
`API.bootstrap` will automatically be called if it hasn't been
already.
"""
self.__doing('load_plugins')
self.__do_if_not_done('bootstrap')
def finalize(self):
"""
Finalize the registration, instantiate the plugins.
`API.bootstrap` will automatically be called if it hasn't been
already.
"""
self.__doing('finalize')
self.__do_if_not_done('bootstrap')