[MerlinSkinThemes] - add support for globals
[enigma2-plugins.git] / serienfilm / src / Import.py
1 def my_import(name):
2 #       print "[SF-Plugin]: my_import(%s)" % (name)
3         if name == "Components.Converter.ServiceTime":
4                 name = "Plugins.Extensions.SerienFilm.ServiceTime"
5         elif name == "Components.Converter.MovieInfo":
6                 name = "Plugins.Extensions.SerienFilm.MovieInfo"
7         mod = __import__(name)
8         components = name.split('.')
9         for comp in components[1:]:
10                 mod = getattr(mod, comp)
11         return mod