docutil/docsvg.py
changeset 1780 c52d1460cea8
parent 1768 691083b5682a
child 1801 58ff55053518
equal deleted inserted replaced
1779:6cf16e5bfbf9 1780:c52d1460cea8
    53 def open_svg(svgfile):
    53 def open_svg(svgfile):
    54     """ Generic function to open SVG file """
    54     """ Generic function to open SVG file """
    55     if wx.Platform == '__WXMSW__':
    55     if wx.Platform == '__WXMSW__':
    56         try:
    56         try:
    57             open_win_svg(get_inkscape_path(), svgfile)
    57             open_win_svg(get_inkscape_path(), svgfile)
    58         except:
    58         except Exception:
    59             wx.MessageBox("Inkscape is not found or installed !")
    59             wx.MessageBox("Inkscape is not found or installed !")
    60             return None
    60             return None
    61     else:
    61     else:
    62         svgexepath = os.path.join("/usr/bin", "inkscape")
    62         svgexepath = os.path.join("/usr/bin", "inkscape")
    63         if(os.path.isfile(svgexepath)):
    63         if(os.path.isfile(svgexepath)):