def _import_module(self, s):
        mod = __import__(s)
        parts = s.split('.')
        for part in parts[1:]:
            mod = getattr(mod, part)
        return mod
Import a module.
dataset/ETHPy150Open TurboGears/gearbox/gearbox/commands/setup_app.py/SetupAppCommand._import_module