build_utils.py
def execute_get_text(command):  # type: (str) ->str
    """
    Execute shell command and return stdout txt
    :param command:
    :return:
    """
    try:
        completed = subprocess.run(
            command,
            check=True,
            shell=True,
            stdout=subprocess.PIPE,
            stderr=subprocess.PIPE
        )
    except subprocess.CalledProcessError as err:
        raise
    else:

        print(completed.stdout.decode('utf-8') + str(":") + completed.stderr.decode("utf-8"))
        return completed.stdout.decode('utf-8')  + completed.stderr.decode("utf-8")
def execute_get_text(command):  # type: (str) ->str
    """
    Execute shell command and return stdout txt
    :param command:
    :return:
    """
    try:
        completed = subprocess.run(
            command,
            check=True,
            shell=True,
            stdout=subprocess.PIPE,
            stderr=subprocess.PIPE
        )
    except subprocess.CalledProcessError as err:
        raise
    else:

        print(completed.stdout.decode('utf-8') + str(":") + completed.stderr.decode("utf-8"))
        return completed.stdout.decode('utf-8')  + completed.stderr.decode("utf-8")
def execute_get_text ( command ) : # type: (str) ->str try : completed = subprocess . run ( command , check = True , shell = True , stdout = subprocess . PIPE , stderr = subprocess . PIPE ) except subprocess . CalledProcessError as err : raise else : print ( completed . stdout . decode ( 'utf-8' ) + str ( ":" ) + completed . stderr . decode ( "utf-8" ) ) return completed . stdout . decode ( 'utf-8' ) + completed . stderr . decode ( "utf-8" )
Execute shell command and return stdout txt
    :param command:
    :return:
Execute shell command and return stdout txt : param command : : return :