Fix the Label plugin to get resources from the namespace.

This commit is contained in:
Pedro Algarvio 2011-06-04 19:19:01 +01:00
parent df3214168c
commit 32c95fac1e
1 changed files with 3 additions and 1 deletions

View File

@ -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)