remove faulty debug print
[enigma2.git] / lib / python / Plugins / Plugin.py
index 183419c7fe90d357b83574963f3767ed78b73b6a..3db703979cc622e281d34f2de4003d2852a7efa5 100644 (file)
@@ -34,7 +34,11 @@ class PluginDescriptor:
                        self.where = [ where ]
                self.description = description
 
-               self.iconstr = icon
+               if type(icon) is str or icon is None:
+                       self.iconstr = icon
+                       self.icon = None
+               else:
+                       self.icon = icon
 
                self.__call__ = fnc
 
@@ -42,4 +46,7 @@ class PluginDescriptor:
                if type(self.iconstr) is str:
                        self.icon = loadPNG(path + self.iconstr)
                else:
-                       self.icon = None
\ No newline at end of file
+                       self.icon = None
+
+       def __eq__(self, other):
+               return self.__call__ == other.__call__