From 32c95fac1ef5927cc261340e5f24105e7525482f Mon Sep 17 00:00:00 2001 From: Pedro Algarvio Date: Sat, 4 Jun 2011 19:19:01 +0100 Subject: [PATCH] Fix the Label plugin to get resources from the namespace. --- .../plugins/Label/deluge/plugins/label/gtkui/label_config.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/deluge/plugins/Label/deluge/plugins/label/gtkui/label_config.py b/deluge/plugins/Label/deluge/plugins/label/gtkui/label_config.py index 473ae5231..695b2305c 100644 --- a/deluge/plugins/Label/deluge/plugins/label/gtkui/label_config.py +++ b/deluge/plugins/Label/deluge/plugins/label/gtkui/label_config.py @@ -70,7 +70,9 @@ class LabelConfig(object): self.plugin.deregister_hook("on_show_prefs", self.load_settings) def get_resource(self, filename): - return pkg_resources.resource_filename("label", os.path.join("data", filename)) + return pkg_resources.resource_filename( + "deluge.plugins.label", os.path.join("data", filename) + ) def load_settings(self, widget=None, data=None): client.label.get_config().addCallback(self.cb_global_options)