def open_svg(svgfile):
""" Generic function to open SVG file """
if wx.Platform == '__WXMSW__':
try:
open_win_svg(get_inkscape_path(), svgfile)
except Exception:
wx.MessageBox("Inkscape is not found or installed !")
return None
else:
svgexepath = os.path.join("/usr/bin", "inkscape")
if(os.path.isfile(svgexepath)):
open_lin_svg(svgexepath, svgfile)
else:
wx.MessageBox("Inkscape is not found or installed !")
return None
评论列表
文章目录