def get_command(self, ctx, name): mod = None try: mod = __import__("platformio.commands." + name, None, None, ["cli"]) except ImportError: raise exception.UnknownCLICommand(name) return mod.cli
def get_command(self, ctx, name): mod = None try: mod = __import__("platformio.commands." + name, None, None, ["cli"]) except ImportError: try: return self._handle_obsolate_command(name) except AttributeError: raise exception.UnknownCLICommand(name) return mod.cli