svghmi/ui.py
changeset 3913 46ef8be69e8c
parent 3891 0f375805097a
equal deleted inserted replaced
3912:050f227a2848 3913:46ef8be69e8c
   466     def GenThumbnail(self, svgpath, thumbpath):
   466     def GenThumbnail(self, svgpath, thumbpath):
   467         inkpath = get_inkscape_path()
   467         inkpath = get_inkscape_path()
   468         if inkpath is None:
   468         if inkpath is None:
   469             self.msg = _("Inkscape is not installed.")
   469             self.msg = _("Inkscape is not installed.")
   470             return False
   470             return False
       
   471         inkpath = inkpath.decode()
   471 
   472 
   472         export_opt = "-o" if get_inkscape_version()[0] > 0 else "-e"
   473         export_opt = "-o" if get_inkscape_version()[0] > 0 else "-e"
   473 
   474 
   474         # TODO: spawn a thread, to decouple thumbnail gen
   475         # TODO: spawn a thread, to decouple thumbnail gen
   475         status, result, _err_result = ProcessLogger(
   476         status, result, _err_result = ProcessLogger(