svghmi/svghmi.py
changeset 3900 4df9cfd14a3c
parent 3880 89549813a6c1
child 3915 b5017dd5c049
equal deleted inserted replaced
3899:31b0f3468175 3900:4df9cfd14a3c
   426     def GetSVGGeometry(self):
   426     def GetSVGGeometry(self):
   427         self.ProgressStart("inkscape", "collecting SVG geometry (Inkscape)")
   427         self.ProgressStart("inkscape", "collecting SVG geometry (Inkscape)")
   428         # invoke inskscape -S, csv-parse output, produce elements
   428         # invoke inskscape -S, csv-parse output, produce elements
   429         InkscapeGeomColumns = ["Id", "x", "y", "w", "h"]
   429         InkscapeGeomColumns = ["Id", "x", "y", "w", "h"]
   430 
   430 
   431         inkpath = get_inkscape_path()
   431         inkpath = get_inkscape_path().decode()
   432         if inkpath is None:
   432         if inkpath is None:
   433             self.FatalError("SVGHMI: inkscape is not installed.")
   433             self.FatalError("SVGHMI: inkscape is not installed.")
   434 
   434 
   435         svgpath = self._getSVGpath()
   435         svgpath = self._getSVGpath()
   436         status, result, _err_result = ProcessLogger(self.GetCTRoot().logger,
   436         status, result, _err_result = ProcessLogger(self.GetCTRoot().logger,