svghmi/svghmi.py
branchsvghmi
changeset 3052 ffce85221ea5
parent 3051 44dd48070e41
child 3068 81758c94f3df
--- a/svghmi/svghmi.py	Wed Sep 02 11:45:41 2020 +0200
+++ b/svghmi/svghmi.py	Thu Sep 03 11:16:08 2020 +0200
@@ -485,13 +485,17 @@
         InkscapeGeomColumns = ["Id", "x", "y", "w", "h"]
 
         inkpath = get_inkscape_path()
+
+        if inkpath is None:
+            self.FatalError("SVGHMI: inkscape is not installed.")
+
         svgpath = self._getSVGpath()
         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")
+            self.FatalError("SVGHMI: inkscape couldn't extract geometry from given SVG.")
 
         res = []
         for line in result.split():