lib/python/Components/PluginsComponent.py: even allow .pyo files
authorghost <andreas.monzner@multimedia-labs.de>
Mon, 15 Feb 2010 09:25:34 +0000 (10:25 +0100)
committerghost <andreas.monzner@multimedia-labs.de>
Mon, 15 Feb 2010 09:25:34 +0000 (10:25 +0100)
lib/python/Components/PluginComponent.py

index c91d6ad..5e439fd 100755 (executable)
@@ -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"]))