GNOME Bugzilla – Bug 429020
Python plugin paths are inserted into sys.path in reverse order
Last modified: 2007-08-01 15:00:17 UTC
rb_python_module_init_python() in plugins/rb-python-module.c calls rb_get_plugin_paths() to get a list of paths to insert into sys.path of the internal python instance. These are in the correct order (user, then system). However, rb_python_module_init_python() then walks the list and inserts each item at the beginning, which has the effect of reversing the list order, making it impossible to override system plugins with user plugins.
Created attachment 86239 [details] [review] Fixes the problem This corrects the problem by creating an "index" variable which is the location to insert items at. It's set to 0 to start with, and gets incremented every time we insert an item.
This problem doesn't seem to have the effect you say it does. If I create ~/.gnome2/rhythmbox/plugins/lyrics/ it gets loaded before $prefix/lib/rhythmbox/plugins/lyrics.
Yeah, I can't seem to reproduce this with 0.11.1. Closing.