svghmi/svghmi.py
branchsvghmi
changeset 3032 2f6dfb99d094
parent 2993 b76f303ffce6
child 3051 44dd48070e41
--- a/svghmi/svghmi.py	Thu Aug 20 13:56:21 2020 +0200
+++ b/svghmi/svghmi.py	Thu Aug 20 14:12:49 2020 +0200
@@ -485,10 +485,13 @@
 
         inkpath = get_inkscape_path()
         svgpath = self._getSVGpath()
-        _status, result, _err_result = ProcessLogger(self.GetCTRoot().logger,
-                                                     inkpath + " -S " + svgpath,
+        status, result, _err_result = ProcessLogger(self.GetCTRoot().logger,
+                                                     '"' + inkpath + '" -S "' + svgpath + '"',
                                                      no_stdout=True,
                                                      no_stderr=True).spin()
+        if status != 0:
+            self.FatalError("SVGHMI : inkscape couldn't extract geometry from given SVG")
+
         res = []
         for line in result.split():
             strippedline = line.strip()