~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/plugin.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2010-03-12 14:34:05 UTC
  • mfrom: (5086.2.1 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20100312143405-ln4h5ph0hut5iicf
(vila) Cleanup test_plugins

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2004, 2005, 2007, 2008, 2010 Canonical Ltd
 
1
# Copyright (C) 2005-2010 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
67
67
    return _plugins_disabled
68
68
 
69
69
 
70
 
@deprecated_function(deprecated_in((2, 0, 0)))
71
 
def get_default_plugin_path():
72
 
    """Get the DEFAULT_PLUGIN_PATH"""
73
 
    global DEFAULT_PLUGIN_PATH
74
 
    if DEFAULT_PLUGIN_PATH is None:
75
 
        DEFAULT_PLUGIN_PATH = osutils.pathjoin(config.config_dir(), 'plugins')
76
 
    return DEFAULT_PLUGIN_PATH
77
 
 
78
 
 
79
70
def disable_plugins():
80
71
    """Disable loading plugins.
81
72
 
188
179
    paths = []
189
180
    for p in env_paths + defaults:
190
181
        if p.startswith('+'):
191
 
            # Resolve reference if they are known
 
182
            # Resolve references if they are known
192
183
            try:
193
184
                p = refs[p[1:]]
194
185
            except KeyError: