equal
deleted
inserted
replaced
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") |