=== modified file 'bzrlib/plugin.py' --- bzrlib/plugin.py 2007-07-13 03:37:46 +0000 +++ bzrlib/plugin.py 2007-07-30 20:11:04 +0000 @@ -79,11 +79,14 @@ global _loaded _loaded = True +def strip_trailing_sep(path): + return path.rstrip(os.sep) def set_plugins_path(): """Set the path for plugins to be loaded from.""" path = os.environ.get('BZR_PLUGIN_PATH', get_default_plugin_path()).split(os.pathsep) + path = map(strip_trailing_sep, path) # search the plugin path before the bzrlib installed dir path.append(os.path.dirname(plugins.__file__)) plugins.__path__ = path