diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2006-06-15 17:39:59 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2006-06-15 17:39:59 +0000 |
| commit | 182af4386274a0be71fce85ea7cf25dd7a2fa599 (patch) | |
| tree | 5ced09f394a8aa4315f73aca901429651abb581a /lib/python/Tools | |
| parent | 1ce4dbb8ba49f5621b3ba6d85a149b48f1dc9031 (diff) | |
| download | enigma2-182af4386274a0be71fce85ea7cf25dd7a2fa599.tar.gz enigma2-182af4386274a0be71fce85ea7cf25dd7a2fa599.zip | |
add import tool
Diffstat (limited to 'lib/python/Tools')
| -rw-r--r-- | lib/python/Tools/Import.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/python/Tools/Import.py b/lib/python/Tools/Import.py new file mode 100644 index 00000000..a46e1d31 --- /dev/null +++ b/lib/python/Tools/Import.py @@ -0,0 +1,6 @@ +def my_import(name): + mod = __import__(name) + components = name.split('.') + for comp in components[1:]: + mod = getattr(mod, comp) + return mod |
