changeset 571:e6cee85fe421

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 13 Jul 2023 17:57:53 +0200
parents 9d41b7f18be8
children 31ab8bb2ac5a
files Plugins/WSI/Run.py
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Plugins/WSI/Run.py	Thu Jul 13 16:51:42 2023 +0200
+++ b/Plugins/WSI/Run.py	Thu Jul 13 17:57:53 2023 +0200
@@ -100,7 +100,10 @@
     
     log = subprocess.check_output(prefix + command,
                                   stderr=subprocess.STDOUT)
-                                  
+
+    if sys.version_info >= (3, 0):
+        log = log.decode('ascii')
+
     # If using valgrind, only print the lines from the log starting
     # with '==' (they contain the report from valgrind)
     if args.valgrind: