From 9dc1c5a3bc6c5dd0bf535e865981e9e4c9774936 Mon Sep 17 00:00:00 2001 From: Zach Tibbitts Date: Thu, 1 Mar 2007 20:29:33 +0000 Subject: [PATCH] example plugin use Preferences class --- plugins/ExamplePlugin/plugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/ExamplePlugin/plugin.py b/plugins/ExamplePlugin/plugin.py index 661c16739..312cc87e2 100644 --- a/plugins/ExamplePlugin/plugin.py +++ b/plugins/ExamplePlugin/plugin.py @@ -13,10 +13,10 @@ class plugin_Example: # The plugin's class self.interface = deluge_interface # Classes must be imported as they are needed from within # the plugin's functions - import dcommon, gtk, gtk.glade, dgtk + import dcommon, gtk, gtk.glade, dgtk, pref # Create an options file and try to load existing Values self.config_file = dcommon.CONFIG_DIR + "/example.conf" - self.config = dcommon.DelugePreferences() + self.config = pref.Preferences() try: self.config.load_from_file(self.config_file) except IOError: