|
|
|
@ -110,20 +110,19 @@ class ExecutionApi:
|
|
|
|
|
print(line.decode("utf-8"), end="")
|
|
|
|
|
process.stdout.close()
|
|
|
|
|
process.wait()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def run_handled(self, command: str, shell=True, check=True):
|
|
|
|
|
try:
|
|
|
|
|
run(
|
|
|
|
|
command,
|
|
|
|
|
shell=shell,
|
|
|
|
|
check=check,
|
|
|
|
|
check=check,
|
|
|
|
|
capture_output=True,
|
|
|
|
|
text=True)
|
|
|
|
|
except CalledProcessError as exc:
|
|
|
|
|
print("Command failed with code: ", exc.returncode, " and message:", exc.stderr)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class EnvironmentApi:
|
|
|
|
|
def get(self, key):
|
|
|
|
|
return environ.get(key)
|
|
|
|
|