X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/ccf6be8713d5ce64ef167ec9516899cd560e0c44..02172ca65853b9f61d46c0e5e7823ee69f203b83:/lib/python/Components/PluginComponent.py diff --git a/lib/python/Components/PluginComponent.py b/lib/python/Components/PluginComponent.py index 145f3d90..095be396 100644 --- a/lib/python/Components/PluginComponent.py +++ b/lib/python/Components/PluginComponent.py @@ -47,16 +47,16 @@ class PluginComponent: continue open(directory_category + "/__init__.py", "a").close() for x in os.listdir(directory_category): - path = directory_category + "/" + x + "/" + path = directory_category + "/" + x if os.path.isdir(path): - if fileExists(path + "plugin.pyc") or 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"): print "Plugin %s doesn't have 'Plugin'-call." % (x) continue - plugins = plugin.Plugins() + plugins = plugin.Plugins(path=path) # allow single entry not to be a list if type(plugins) is not list: