equal
deleted
inserted
replaced
43 |
43 |
44 def open_lin_svg(svgexepath, svgfile): |
44 def open_lin_svg(svgexepath, svgfile): |
45 """ Open Inkscape on Linux platform """ |
45 """ Open Inkscape on Linux platform """ |
46 if os.path.isfile("/usr/bin/inkscape"): |
46 if os.path.isfile("/usr/bin/inkscape"): |
47 os.system("%s %s &" % (svgexepath , svgfile)) |
47 os.system("%s %s &" % (svgexepath , svgfile)) |
48 |
48 |
49 def open_svg(svgfile): |
49 def open_svg(svgfile): |
50 """ Generic function to open SVG file """ |
50 """ Generic function to open SVG file """ |
51 if wx.Platform == '__WXMSW__' : |
51 if wx.Platform == '__WXMSW__' : |
52 try: |
52 try: |
53 open_win_svg(get_inkscape_path(), svgfile) |
53 open_win_svg(get_inkscape_path(), svgfile) |
59 if(os.path.isfile(svgexepath)): |
59 if(os.path.isfile(svgexepath)): |
60 open_lin_svg(svgexepath, svgfile) |
60 open_lin_svg(svgexepath, svgfile) |
61 else: |
61 else: |
62 wx.MessageBox("Inkscape is not found or installed !") |
62 wx.MessageBox("Inkscape is not found or installed !") |
63 return None |
63 return None |
64 |
|