aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components/PluginComponent.py
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2006-06-15 17:39:37 +0000
committerFelix Domke <tmbinc@elitedvb.net>2006-06-15 17:39:37 +0000
commit1ce4dbb8ba49f5621b3ba6d85a149b48f1dc9031 (patch)
treecddbd1597999b7c8fda5cb24055402332ec5e56d /lib/python/Components/PluginComponent.py
parent1889fbce45ea5471d15f95c04594d9aa2a429120 (diff)
downloadenigma2-1ce4dbb8ba49f5621b3ba6d85a149b48f1dc9031.tar.gz
enigma2-1ce4dbb8ba49f5621b3ba6d85a149b48f1dc9031.zip
use import from tools
Diffstat (limited to 'lib/python/Components/PluginComponent.py')
-rw-r--r--lib/python/Components/PluginComponent.py9
1 files changed, 1 insertions, 8 deletions
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 = {}