(self, command)
Runs the given command via subprocess.check_output.

        Exits with -1 if the command wasn't successfull.
Runs the given command via subprocess.check_output.
Runs the given command via subprocess . check_output .
def run(self, command):
        """Runs the given command via subprocess.check_output.

        Exits with -1 if the command wasn't successfull.

        """
        try:
            print(f"RUNNING: {command}")
            print("-" * 80)
            print(subprocess.check_output(command, shell=True).decode('utf-8'))
        except subprocess.CalledProcessError as e:
            print(f"ERROR calling '{command}'")
            print("-" * 20)
            print(e.output and e.output.decode('utf-8'))
            sys.exit(-1)
def run ( self , command ) : try : print ( f"RUNNING: {command}" ) print ( "-" * 80 ) print ( subprocess . check_output ( command , shell = True ) . decode ( 'utf-8' ) ) except subprocess . CalledProcessError as e : print ( f"ERROR calling '{command}'" ) print ( "-" * 20 ) print ( e . output and e . output . decode ( 'utf-8' ) ) sys . exit ( - 1 )