Fix SVGHMI build exception on windows: return bytes for inkscape path in docsvg.
authorEdouard Tisserant <edouard@beremiz.fr>
Fri, 23 Feb 2024 11:54:51 +0100
changeset 3901 b8b3573475e7
parent 3900 4df9cfd14a3c
child 3902 03278d95e58a
child 3904 af48442313d5
child 3906 f831ff63ca6e
Fix SVGHMI build exception on windows: return bytes for inkscape path in docsvg.
docutil/docsvg.py
--- a/docutil/docsvg.py	Wed Feb 21 22:47:12 2024 +0100
+++ b/docutil/docsvg.py	Fri Feb 23 11:54:51 2024 +0100
@@ -51,7 +51,7 @@
         if inkcmd is None:
             return None
 
-        return inkcmd.replace('"%1"', '').strip().replace('"', '')
+        return inkcmd.replace('"%1"', '').strip().replace('"', '').encode()
 
     else:
         try: