plugins/python/modules/svgui/svgui.py
changeset 421 c9ec111ad275
parent 415 339fa2542481
child 427 7ac746c07ff2
equal deleted inserted replaced
420:c093ec48f2fd 421:c9ec111ad275
    91         if dialog.ShowModal() == wx.ID_OK:
    91         if dialog.ShowModal() == wx.ID_OK:
    92             svgpath = dialog.GetPath()
    92             svgpath = dialog.GetPath()
    93             if os.path.isfile(svgpath):
    93             if os.path.isfile(svgpath):
    94                 shutil.copy(svgpath, self._getSVGpath())
    94                 shutil.copy(svgpath, self._getSVGpath())
    95             else:
    95             else:
    96                 self.logger.write_error(_("No such SVG file: %s\n")%svgpath)
    96                 self.GetPlugRoot().logger.write_error(_("No such SVG file: %s\n")%svgpath)
    97         dialog.Destroy()  
    97         dialog.Destroy()  
    98 
    98 
    99     def _StartInkscape(self):
    99     def _StartInkscape(self):
   100         svgfile = self._getSVGpath()
   100         svgfile = self._getSVGpath()
   101         if not os.path.isfile(svgfile):
   101         if not os.path.isfile(svgfile):