From 525a6091eb7403ec96d6a50deb8dc1aed44500d1 Mon Sep 17 00:00:00 2001 From: Marcos Pinto Date: Wed, 13 Jun 2007 21:29:36 +0000 Subject: [PATCH] fix torrentsearch - nuno --- plugins/TorrentSearch/plugin.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/plugins/TorrentSearch/plugin.py b/plugins/TorrentSearch/plugin.py index 5e8fbfda0..33fbfd0fa 100644 --- a/plugins/TorrentSearch/plugin.py +++ b/plugins/TorrentSearch/plugin.py @@ -2,7 +2,8 @@ class plugin_Search: def __init__(self, path, deluge_core, deluge_interface): - import common, gtk, gtk.glade, dgtk, pref + import gtk, gtk.glade, os + from deluge import common, dgtk, pref self.core = deluge_core self.interface = deluge_interface self.conf_file = common.CONFIG_DIR + "/search.conf" @@ -86,7 +87,8 @@ class plugin_Search: return True def configure(self, widget=None): - import common, gtk, gtk.glade + import gtk, gtk.glade + from deluge import common self.dlg.show_all() model = self.view.get_model() model.clear() @@ -111,7 +113,7 @@ class plugin_Search: pass def torrent_search(self, widget=None): - import common + from deluge import common print "Searching with engine", self.se url = self.engines.get(self.se) entry = self.search_entry.get_text()