def __init__(self, name = "Plugin", where = [ ], description = "", icon = None, fnc = None, wakeupfnc = None, internal = False):
self.name = name
self.internal = internal
def __init__(self, name = "Plugin", where = [ ], description = "", icon = None, fnc = None, wakeupfnc = None, internal = False):
self.name = name
self.internal = internal
- if type(self.iconstr) is str:
- self.icon = LoadPixmap(path + "/" + self.iconstr)
+ if isinstance(self.iconstr, str):
+ self.icon = LoadPixmap('/'.join((path, self.iconstr)))