def get_from_module(self, name):
        i = name.rfind('.')
        module, attr = name[:i], name[i + 1:]

        try:
            mod = __import__(module, {}, {}, [attr])
            return getattr(mod, attr)
        except AttributeError:
            raise ImportError
        except __HOLE__:
            raise
dataset/ETHPy150Open reviewboard/rbtools/docs/rbtools/_ext/rbt_commands.py/CommandDirective.get_from_module