From 25b144d0d96c9d4a7b236b0fe19de9ec6ac0e2db Mon Sep 17 00:00:00 2001 From: zellneralex <37265689+zellneralex@users.noreply.github.com> Date: Sat, 26 Feb 2022 19:25:59 +0100 Subject: [PATCH] gcode_shell_command: change to make it compatible with a py3 virtual env The change is needed that the module can be used in a python 2 and python 3 virtual env. Signed-off-by: Alex Zellner alexander.zellner@googlemail.com --- resources/gcode_shell_command.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/gcode_shell_command.py b/resources/gcode_shell_command.py index 89359ea..bb38ae5 100755 --- a/resources/gcode_shell_command.py +++ b/resources/gcode_shell_command.py @@ -32,7 +32,7 @@ class ShellCommand: data = os.read(self.proc_fd, 4096) except Exception: pass - data = self.partial_output + data + data = self.partial_output + data.decode() if '\n' not in data: self.partial_output = data return