Correct binary output
This commit is contained in:
parent
1eafae2c84
commit
bc9722659e
1 changed files with 2 additions and 1 deletions
3
lib.py
3
lib.py
|
|
@ -2,9 +2,10 @@
|
|||
|
||||
import subprocess
|
||||
import re
|
||||
import sys
|
||||
|
||||
def echo (bstr):
|
||||
print (bstr.decode(), end='')
|
||||
sys.stdout.buffer.write (bstr)
|
||||
|
||||
def script (*args):
|
||||
args = ('./script.sh',) + args
|
||||
|
|
|
|||
Loading…
Reference in a new issue