~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/plugin.py

  • Committer: Aaron Bentley
  • Date: 2008-11-13 20:26:26 UTC
  • mto: This revision was merged to the branch mainline in revision 3841.
  • Revision ID: aaron@aaronbentley.com-20081113202626-yvxt9hjoflmtgsw3
Simplify disable_plugins implementation

Show diffs side-by-side

added added

removed removed

Lines of Context:
72
72
 
73
73
    Future calls to load_plugins() will be ignored.
74
74
    """
75
 
    # TODO: jam 20060131 This should probably also disable
76
 
    #       load_from_dirs()
77
 
    global _loaded
78
 
    _loaded = True
79
 
    set_plugins_path([])
 
75
    load_plugins([])
80
76
 
81
77
 
82
78
def _strip_trailing_sep(path):