From ccf6be8713d5ce64ef167ec9516899cd560e0c44 Mon Sep 17 00:00:00 2001 From: Felix Domke Date: Mon, 27 Feb 2006 19:48:29 +0000 Subject: [PATCH] allow binary only python plugins --- lib/python/Components/PluginComponent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/python/Components/PluginComponent.py b/lib/python/Components/PluginComponent.py index e5ceb90d..145f3d90 100644 --- a/lib/python/Components/PluginComponent.py +++ b/lib/python/Components/PluginComponent.py @@ -49,7 +49,7 @@ class PluginComponent: for x in os.listdir(directory_category): path = directory_category + "/" + x + "/" if os.path.isdir(path): - if fileExists(path + "plugin.py"): + if fileExists(path + "plugin.pyc") or fileExists(path + "plugin.py"): plugin = my_import('.'.join(["Plugins", c, x, "plugin"])) if not plugin.__dict__.has_key("Plugins"): -- 2.30.2