--- a/docutil/docsvg.py Mon Aug 14 22:30:41 2017 +0300
+++ b/docutil/docsvg.py Mon Aug 14 23:27:15 2017 +0300
@@ -26,6 +26,7 @@
import os
import subprocess
+
def get_inkscape_path():
""" Return the Inkscape path """
import _winreg
@@ -34,6 +35,7 @@
svgexepath = svgexepath.replace('"%1"', '')
return svgexepath.replace('"', '')
+
def open_win_svg(svgexepath, svgfile):
""" Open Inkscape on Windows platform """
popenargs = [svgexepath]
@@ -41,11 +43,13 @@
popenargs.append(svgfile)
subprocess.Popen(popenargs).pid
+
def open_lin_svg(svgexepath, svgfile):
""" Open Inkscape on Linux platform """
if os.path.isfile("/usr/bin/inkscape"):
os.system("%s %s &" % (svgexepath , svgfile))
+
def open_svg(svgfile):
""" Generic function to open SVG file """
if wx.Platform == '__WXMSW__' :