X-Git-Url: http://code.vuplus.com/gitweb/?a=blobdiff_plain;f=lib%2Fpython%2FComponents%2FPluginComponent.py;h=b06246b25939f4ec4f39810b8292e42ce1534a00;hb=316f6a4f78d654e7822431cca75659709c6c3fee;hp=93b089001630cf5d4841e29cf21c9447b6a885e0;hpb=df1a17b12cb9535832a8db9bcbcf213210ddca81;p=vuplus_dvbapp diff --git a/lib/python/Components/PluginComponent.py b/lib/python/Components/PluginComponent.py index 93b0890..b06246b 100755 --- a/lib/python/Components/PluginComponent.py +++ b/lib/python/Components/PluginComponent.py @@ -49,7 +49,6 @@ class PluginComponent: directory_category = directory + c if not os_path.isdir(directory_category): continue - open(directory_category + "/__init__.py", "a").close() for pluginname in os_listdir(directory_category): path = directory_category + "/" + pluginname if os_path.isdir(path): @@ -122,8 +121,8 @@ class PluginComponent: for x in where: res.extend(self.plugins.get(x, [ ])) - - return res + res.sort(key=lambda x:x.weight) + return res def getPluginsForMenu(self, menuid): res = [ ]