20: Any python module in $BZR_PLUGIN_PATH will be imported upon initialization of 21: bzrlib. The module will be imported as 'bzrlib.plugins.$BASENAME(PLUGIN)'. 22: In the plugin's main body, it should update any bzrlib registries it wants to 23: extend; for example, to add new commands, import bzrlib.commands and add your 24: new command to the plugin_cmds variable. 25: """
21: bzrlib. The module will be imported as 'bzrlib.plugins.$BASENAME(PLUGIN)'. 22: In the plugin's main body, it should update any bzrlib registries it wants to 23: extend; for example, to add new commands, import bzrlib.commands and add your
173: try: 174: plugin = imp.load_module('bzrlib.plugins.' + name, 175: *plugin_info)
21: bzrlib. The module will be imported as 'bzrlib.plugins.$BASENAME(PLUGIN)'. 22: In the plugin's main body, it should update any bzrlib registries it wants to 23: extend; for example, to add new commands, import bzrlib.commands and add your
62: Loading a plugin means importing it into the python interpreter. 63: The plugin is expected to make calls to register commands when 64: it's loaded (or perhaps access other hooks in future.)
19: # Any python module in $BZR_PLUGIN_PATH will be imported upon initialization 20: # of bzrlib (and then forgotten about). In the plugin's main body, it should 21: # update any bzrlib registries it wants to extend; for example, to add new
38: Loading a plugin means importing it into the python interpreter. 39: The plugin is expected to make calls to register commands when 40: it's loaded (or perhaps access other hooks in future.)
Google Home - Google Code - Discuss - Terms of Service - Help - Submit Your Code
©2009 Google - Privacy