MCPcopy
hub / github.com/kbumsik/VirtScreen / run

Method run

virtscreen/process.py:19–23  ·  view source on GitHub ↗
(self, arg: str, input: str = None, check=False)

Source from the content-addressed store, hash-verified

17 return subprocess.check_output(shlex.split(arg), stderr=subprocess.STDOUT).decode('utf-8')
18
19 def run(self, arg: str, input: str = None, check=False) -> str:
20 if input:
21 input = input.encode('utf-8')
22 return subprocess.run(shlex.split(arg), input=input, stdout=subprocess.PIPE,
23 check=check, stderr=subprocess.STDOUT).stdout.decode('utf-8')
24
25
26class _Protocol(asyncio.SubprocessProtocol):

Callers 2

__init__Method · 0.95
createVNCPasswordMethod · 0.95

Calls 1

runMethod · 0.45

Tested by

no test coverage detected