aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components/PluginComponent.py
diff options
context:
space:
mode:
authorghost <andreas.monzner@multimedia-labs.de>2010-02-15 10:25:34 +0100
committerghost <andreas.monzner@multimedia-labs.de>2010-02-15 10:25:34 +0100
commit985e7a88ad3611501223da5c74cd0e7edbb3e703 (patch)
tree70e79b214e0599e90340b0a17736ec70cb7fcdcb /lib/python/Components/PluginComponent.py
parent1fc2700e351c0297089925aba6c3a7b890dfb077 (diff)
downloadenigma2-985e7a88ad3611501223da5c74cd0e7edbb3e703.tar.gz
enigma2-985e7a88ad3611501223da5c74cd0e7edbb3e703.zip
lib/python/Components/PluginsComponent.py: even allow .pyo files
Diffstat (limited to 'lib/python/Components/PluginComponent.py')
-rwxr-xr-xlib/python/Components/PluginComponent.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/python/Components/PluginComponent.py b/lib/python/Components/PluginComponent.py
index c91d6ad5..5e439fdf 100755
--- 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"]))