X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=blobdiff_plain;f=lib%2Fpython%2FComponents%2FPluginComponent.py;h=5e439fdfea437eb0402e121dbfdc40baea843825;hp=fff5c47575011e35b119b17ee2c59f9e7add53e8;hb=985e7a88ad3611501223da5c74cd0e7edbb3e703;hpb=e68a1617b7c1efbedf8b28309943dd7669daaad0 diff --git a/lib/python/Components/PluginComponent.py b/lib/python/Components/PluginComponent.py old mode 100644 new mode 100755 index fff5c47..5e439fd --- a/lib/python/Components/PluginComponent.py +++ b/lib/python/Components/PluginComponent.py @@ -46,7 +46,7 @@ class PluginComponent: for pluginname in os_listdir(directory_category): path = directory_category + "/" + pluginname if os_path.isdir(path): - if fileExists(path + "/plugin.pyc") or fileExists(path + "/plugin.py"): + if fileExists(path + "/plugin.pyc") or fileExists(path + "/plugin.pyo") or fileExists(path + "/plugin.py"): try: plugin = my_import('.'.join(["Plugins", c, pluginname, "plugin"])) @@ -121,7 +121,7 @@ class PluginComponent: wakeup = -1 for p in self.pluginList: current = p.getWakeupTime() - if current > -1 and wakeup < current: + if current > -1 and (wakeup > current or wakeup == -1): wakeup = current return int(wakeup)