forked from root/threadr.lostcave.ddnss.de
fixed the command function
parent
92fba18fd7
commit
87fc3f3f33
|
@ -15,7 +15,7 @@ exit_codes = {
|
||||||
"error while processing": 2
|
"error while processing": 2
|
||||||
}
|
}
|
||||||
|
|
||||||
stderr("Variable Grabbler - version 5.0_pre1\n--------------------------------------------------------------------------------")
|
stderr("Variable Grabbler - version 5.0_pre2\n--------------------------------------------------------------------------------")
|
||||||
################################################################################
|
################################################################################
|
||||||
# Chnages in this version:
|
# Chnages in this version:
|
||||||
# - complete rewrite in Python 3
|
# - complete rewrite in Python 3
|
||||||
|
@ -75,7 +75,7 @@ for macro in macros:
|
||||||
stderr("I: Running command: " + macro)
|
stderr("I: Running command: " + macro)
|
||||||
process = subprocess.Popen(macros[macro][1], shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
process = subprocess.Popen(macros[macro][1], shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
||||||
process_stdout, process_stderr = process.communicate()
|
process_stdout, process_stderr = process.communicate()
|
||||||
macros[macro] = process_stdout
|
macros[macro] = process_stdout.decode("utf-8")
|
||||||
if len(process_stderr) > 0:
|
if len(process_stderr) > 0:
|
||||||
stderr("Output on stderr:\n"+process_stderr)
|
stderr("Output on stderr:\n"+process_stderr)
|
||||||
if not process.returncode == 0:
|
if not process.returncode == 0:
|
||||||
|
|
Loading…
Reference in New Issue