src/util.py
def run_command(command):
    """
    Runs command and returns (the returncode, stdout, stderr) or raises an
    exception if returncode != 0.
    """

    logger = logging.getLogger()
    command_string = ' '.join(command)
    logger.info(f'Start command:  {command_string}')

    proc = subprocess.run(command,
                          stdout=subprocess.PIPE,
                          stderr=subprocess.PIPE)
    if proc.returncode != 0:
        raise Exception(f'Error running command: {proc.stdout} {proc.stderr}')

    logger.info(f'Finish command: {command_string}')
    return (proc.returncode, proc.stdout, proc.stderr)

    Runs command and returns (the returncode, stdout, stderr) or raises an
    exception if returncode != 0.
    
Runs command and returns (the returncode, stdout, stderr) or raises an
exception if returncode != 0.
Runs command and returns ( the returncode stdout stderr ) or raises an exception if returncode ! = 0 .
def run_command(command):
    logger = logging.getLogger()
    command_string = ' '.join(command)
    logger.info(f'Start command:  {command_string}')
    proc = subprocess.run(command,
                          stdout=subprocess.PIPE,
                          stderr=subprocess.PIPE)
    if proc.returncode != 0:
        raise Exception(f'Error running command: {proc.stdout} {proc.stderr}')
    logger.info(f'Finish command: {command_string}')
    return (proc.returncode, proc.stdout, proc.stderr)
def run_command ( command ) : logger = logging . getLogger ( ) command_string = ' ' . join ( command ) logger . info ( f'Start command:  {command_string}' ) proc = subprocess . run ( command , stdout = subprocess . PIPE , stderr = subprocess . PIPE ) if proc . returncode != 0 : raise Exception ( f'Error running command: {proc.stdout} {proc.stderr}' ) logger . info ( f'Finish command: {command_string}' ) return ( proc . returncode , proc . stdout , proc . stderr )
Runs command and returns (the returncode, stdout, stderr) or raises an
exception if returncode != 0.
Runs command and returns ( the returncode stdout stderr ) or raises an exception if returncode ! = 0 .
"""
    Runs command and returns (the returncode, stdout, stderr) or raises an
    exception if returncode != 0.
    """
command