~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/plugin.py

  • Committer: jml at canonical
  • Date: 2007-02-23 06:06:54 UTC
  • mto: (2298.3.1 jam-integration)
  • mto: This revision was merged to the branch mainline in revision 2300.
  • Revision ID: jml@canonical.com-20070223060654-hna3q6wwljswnkh3
Make set_plugins_path search user-specified directories (BZR_PLUGIN_PATH 
or get_default_plugin_path()) before searching in site-wide directories
(dirname(bzrlib.plugins.__file__)).

Show diffs side-by-side

added added

removed removed

Lines of Context:
84
84
    """Set the path for plugins to be loaded from."""
85
85
    path = os.environ.get('BZR_PLUGIN_PATH',
86
86
                          get_default_plugin_path()).split(os.pathsep)
87
 
    # search the bzrlib installed dir before anything else.
88
 
    path.insert(0, os.path.dirname(plugins.__file__))
 
87
    # search the plugin path before the bzrlib installed dir
 
88
    path.append(os.path.dirname(plugins.__file__))
89
89
    plugins.__path__ = path
90
90
    return path
91
91