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"]))
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)