diff --git a/plugins/ExamplePlugin/plugin.py b/plugins/ExamplePlugin/plugin.py index d0a789dc2..2651f54c7 100644 --- a/plugins/ExamplePlugin/plugin.py +++ b/plugins/ExamplePlugin/plugin.py @@ -13,9 +13,9 @@ 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, pref + import common, 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_file = common.CONFIG_DIR + "/example.conf" self.config = pref.Preferences() try: self.config.load_from_file(self.config_file) diff --git a/plugins/NetworkGraph/plugin.py b/plugins/NetworkGraph/plugin.py index 575f31e91..29a3ba52b 100644 --- a/plugins/NetworkGraph/plugin.py +++ b/plugins/NetworkGraph/plugin.py @@ -114,9 +114,9 @@ class plugin_NetGraph: meanDownSpeed = sum(self.savedDownSpeeds)/len(self.savedDownSpeeds) shownSpeed = max(meanUpSpeed, meanDownSpeed) - import dcommon + import common - self.pangoLayout.set_text(dcommon.frate(shownSpeed)) + self.pangoLayout.set_text(common.frate(shownSpeed)) self.networkPixmap.draw_layout(self.image.get_style().black_gc, 4, int(self.height - 1 - (self.height*shownSpeed/maxSpeed)), diff --git a/plugins/TorrentSearch/plugin.py b/plugins/TorrentSearch/plugin.py index 1a5a0a0d4..cbc662107 100644 --- a/plugins/TorrentSearch/plugin.py +++ b/plugins/TorrentSearch/plugin.py @@ -2,10 +2,10 @@ class plugin_Search: def __init__(self, path, deluge_core, deluge_interface): - import dcommon, gtk, gtk.glade, dgtk, pref + import common, gtk, gtk.glade, dgtk, pref self.core = deluge_core self.interface = deluge_interface - self.conf_file = dcommon.CONFIG_DIR + "/search.conf" + self.conf_file = common.CONFIG_DIR + "/search.conf" if not os.path.isfile(self.conf_file): f = open(self.conf_file, mode='w') f.flush()