[Rhythmbox-devel] Python plugin paths are inserted into sys.path in reverse order



(Also at bugzilla as http://bugzilla.gnome.org/show_bug.cgi?id=429020, but here for completeness, and that this makes python plugin modifications with system installed rhythmbox somewhat difficult)

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.

Tom
--
palfrey tevp net - http://tevp.net
Illegitimus non carborundum


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]