~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/codehosting/__init__.py

  • Committer: Jelmer Vernooij
  • Date: 2011-12-10 23:19:26 UTC
  • mto: This revision was merged to the branch mainline in revision 14491.
  • Revision ID: jelmer@canonical.com-20111210231926-bjy6z2v63nepajyi
Remove 'load_optional_plugin' calls.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
__all__ = [
12
12
    'get_bzr_path',
13
13
    'get_BZR_PLUGIN_PATH_for_subprocess',
14
 
    'load_optional_plugin',
15
14
    ]
16
15
 
17
16
 
61
60
load_plugins([_get_bzr_plugins_path()])
62
61
 
63
62
 
64
 
def load_optional_plugin(plugin_name):
65
 
    """Load the plugin named `plugin_name` from optionalbzrplugins/."""
66
 
    from bzrlib import plugins
67
 
    optional_plugin_dir = os.path.join(config.root, 'bzrplugins/optional')
68
 
    if optional_plugin_dir not in plugins.__path__:
69
 
        plugins.__path__.append(optional_plugin_dir)
70
 
    __import__("bzrlib.plugins.%s" % plugin_name)
71
 
 
72
 
 
73
63
def load_bundled_plugin(plugin_name):
74
64
    """Load a plugin bundled with Bazaar."""
75
65
    from bzrlib.plugin import get_core_plugin_path