diff options
| author | ghost <andreas.monzner@multimedia-labs.de> | 2010-02-15 10:25:34 +0100 |
|---|---|---|
| committer | ghost <andreas.monzner@multimedia-labs.de> | 2010-02-15 10:25:34 +0100 |
| commit | 985e7a88ad3611501223da5c74cd0e7edbb3e703 (patch) | |
| tree | 70e79b214e0599e90340b0a17736ec70cb7fcdcb /lib/python/Components/PluginComponent.py | |
| parent | 1fc2700e351c0297089925aba6c3a7b890dfb077 (diff) | |
| download | enigma2-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-x | lib/python/Components/PluginComponent.py | 2 |
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"])) |
