debugging

This commit is contained in:
Anton Hvornum 2019-11-19 00:47:45 +00:00
parent 1c7077029b
commit 2fbf1beeef
1 changed files with 1 additions and 1 deletions

View File

@ -193,7 +193,7 @@ def simple_command(cmd, opts=None, *positionals, **kwargs):
if not opts: opts = {}
if 'debug' in opts:
print('[!] {}'.format(cmd))
handle = Popen(cmd, shell='True', stdout=PIPE, stderr=STDOUT, stdin=PIPE, **kwargs)
handle = Popen(cmd, shell='True', stdout=PIPE, stderr=STDOUT, stdin=PIPE)
output = b''
while handle.poll() is None:
data = handle.stdout.read()