예제 #1
0
 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
예제 #2
0
 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