~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/plugin.py

  • Committer: Martin Pool
  • Date: 2005-09-05 05:35:25 UTC
  • mfrom: (974.1.55)
  • Revision ID: mbp@sourcefrog.net-20050905053525-2112bac069dbe331
- merge various bug fixes from aaron

aaron.bentley@utoronto.ca-20050905020131-a2d5b7711dd6cd98

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
 
25
25
 
26
26
import os
27
 
import bzrlib
28
 
from bzrlib.config import config_dir
 
27
from bzrlib.osutils import config_dir
29
28
DEFAULT_PLUGIN_PATH = os.path.join(config_dir(), 'plugins')
30
29
 
31
30
all_plugins = []
111
110
                plugin_info = imp.find_module(name, [d])
112
111
                mutter('load plugin %r' % (plugin_info,))
113
112
                try:
114
 
                    plugin = imp.load_module('bzrlib.plugins.' + name,
 
113
                    plugin = imp.load_module('bzrlib.plugin.' + name,
115
114
                                             *plugin_info)
116
115
                    all_plugins.append(plugin)
117
 
                    setattr(bzrlib.plugins, name, plugin)
118
116
                finally:
119
117
                    if plugin_info[0] is not None:
120
118
                        plugin_info[0].close()