docutil/docsvg.py
changeset 755 1d77d700761f
parent 682 4d437bc0ef3f
equal deleted inserted replaced
754:48966b6ceedc 755:1d77d700761f
    45         os.system("%s %s &"%(svgexepath , svgfile))
    45         os.system("%s %s &"%(svgexepath , svgfile))
    46     
    46     
    47 def open_svg(svgfile):
    47 def open_svg(svgfile):
    48     """ Generic function to open SVG file """
    48     """ Generic function to open SVG file """
    49     if wx.Platform == '__WXMSW__' :
    49     if wx.Platform == '__WXMSW__' :
    50         svgexepath = get_inkscape_path()
       
    51         try:
    50         try:
    52             open_win_svg(svgexepath , svgfile)
    51             open_win_svg(get_inkscape_path(), svgfile)
    53         except:
    52         except:
    54             wx.MessageBox("Inkscape is not found or installed !")
    53             wx.MessageBox("Inkscape is not found or installed !")
    55             return None
    54             return None
    56     else:
    55     else:
    57         svgexepath = os.path.join("/usr/bin","inkscape")
    56         svgexepath = os.path.join("/usr/bin","inkscape")