diff options
Diffstat (limited to 'scripts/utils.py')
-rw-r--r-- | scripts/utils.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/utils.py b/scripts/utils.py index e06bdbb..af98fce 100644 --- a/scripts/utils.py +++ b/scripts/utils.py @@ -40,7 +40,10 @@ def callsubprocess(process_name, process, show_output = True, pass if stdin != None: - sprc.stdin.write(bytes(stdin, sys.getdefaultencoding())) + for ln in stdin: + sprc.stdin.write(bytes(ln + '\n', sys.getdefaultencoding())) + sprc.stdin.flush() + sprc.stdin.close() rtn = [] with open(os.path.join(sf(conf.log_folder), |