diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2006-03-05 21:48:37 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2006-03-05 21:48:37 +0000 |
| commit | cfdc155f46f816c17d098ba0bb2a3bd2037e2f1e (patch) | |
| tree | 485b13e725976d6310f3206a06af731cd90573d3 /lib/python/Components/PluginComponent.py | |
| parent | 15fb039f08f9b50c300d7aed75571e0e574f1d00 (diff) | |
| download | enigma2-cfdc155f46f816c17d098ba0bb2a3bd2037e2f1e.tar.gz enigma2-cfdc155f46f816c17d098ba0bb2a3bd2037e2f1e.zip | |
fix absolute paths to be relative
Diffstat (limited to 'lib/python/Components/PluginComponent.py')
| -rw-r--r-- | lib/python/Components/PluginComponent.py | 6 |
1 files changed, 3 insertions, 3 deletions
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: |
