Suppose I provide a module in the command line and want to import it using the "imp" module:
$ foo.py mod.a.b.c
What is the proper way of doing this?
Split the "mod.a.b.c" and add each path? The behaviour of "imp" does not seem to be parallel to "import".