From 87fc3f3f3315ec2b3e430a05b89ff595a1232b3a Mon Sep 17 00:00:00 2001 From: BodgeMaster <> Date: Wed, 8 Sep 2021 09:52:07 +0200 Subject: [PATCH] fixed the command function --- variable_grabbler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/variable_grabbler.py b/variable_grabbler.py index a48ec58..c226c38 100644 --- a/variable_grabbler.py +++ b/variable_grabbler.py @@ -15,7 +15,7 @@ exit_codes = { "error while processing": 2 } -stderr("Variable Grabbler - version 5.0_pre1\n--------------------------------------------------------------------------------") +stderr("Variable Grabbler - version 5.0_pre2\n--------------------------------------------------------------------------------") ################################################################################ # Chnages in this version: # - complete rewrite in Python 3 @@ -75,7 +75,7 @@ for macro in macros: stderr("I: Running command: " + macro) process = subprocess.Popen(macros[macro][1], shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE) process_stdout, process_stderr = process.communicate() - macros[macro] = process_stdout + macros[macro] = process_stdout.decode("utf-8") if len(process_stderr) > 0: stderr("Output on stderr:\n"+process_stderr) if not process.returncode == 0: