def command_use(self, module_path, *args, **kwargs):
        module_path = utils.pythonize_path(module_path)
        module_path = '.'.join(('routersploit', 'modules', module_path))
        # module_path, _, exploit_name = module_path.rpartition('.')
        try:
            module = importlib.import_module(module_path)
            self.current_module = getattr(module, 'Exploit')()
        except (__HOLE__, AttributeError, KeyError):
            utils.print_error("Error during loading '{}' module. "
                              "It should be valid path to the module. "
                              "Use <tab> key multiple times for completion.".format(utils.humanize_path(module_path)))
dataset/ETHPy150Open reverse-shell/routersploit/routersploit/interpreter.py/RoutersploitInterpreter.command_use