git.cweiske.de
/
enigma2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1889fbc
)
use import from tools
author
Felix Domke
<
[email protected]
>
Thu, 15 Jun 2006 17:39:37 +0000
(17:39 +0000)
committer
Felix Domke
<
[email protected]
>
Thu, 15 Jun 2006 17:39:37 +0000
(17:39 +0000)
lib/python/Components/PluginComponent.py
patch
|
blob
|
history
diff --git
a/lib/python/Components/PluginComponent.py
b/lib/python/Components/PluginComponent.py
index 095be3965ff81749b7cfa54825eada9353d05a76..dd29628b80c96b3a10c68324f3e02be72528a46d 100644
(file)
--- 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 = {}