aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components/PluginComponent.py
diff options
context:
space:
mode:
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 = {}