X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/cfdc155f46f816c17d098ba0bb2a3bd2037e2f1e..2dc6a66bffab9f1dfd3f1749a3113ac01525441c:/lib/python/Components/PluginComponent.py diff --git a/lib/python/Components/PluginComponent.py b/lib/python/Components/PluginComponent.py index 095be396..dd29628b 100644 --- a/lib/python/Components/PluginComponent.py +++ b/lib/python/Components/PluginComponent.py @@ -1,16 +1,9 @@ import os from Tools.Directories import * +from Tools.Import import my_import from Plugins.Plugin import PluginDescriptor -def my_import(name): - print name - mod = __import__(name) - components = name.split('.') - for comp in components[1:]: - mod = getattr(mod, comp) - return mod - class PluginComponent: def __init__(self): self.plugins = {}