remove unneeded code
[enigma2.git] / lib / python / Tools / Import.py
1 def my_import(name):
2         mod = __import__(name)
3         components = name.split('.')
4         for comp in components[1:]:
5                 mod = getattr(mod, comp)
6         return mod