docutil/docsvg.py
changeset 1768 691083b5682a
parent 1740 b789b695b5c6
child 1780 c52d1460cea8
equal deleted inserted replaced
1767:c74815729afd 1768:691083b5682a
    29 
    29 
    30 def get_inkscape_path():
    30 def get_inkscape_path():
    31     """ Return the Inkscape path """
    31     """ Return the Inkscape path """
    32     import _winreg
    32     import _winreg
    33     svgexepath = _winreg.QueryValue(_winreg.HKEY_LOCAL_MACHINE,
    33     svgexepath = _winreg.QueryValue(_winreg.HKEY_LOCAL_MACHINE,
    34                  'Software\\Classes\\svgfile\\shell\\Inkscape\\command')
    34                                     'Software\\Classes\\svgfile\\shell\\Inkscape\\command')
    35     svgexepath = svgexepath.replace('"%1"', '')
    35     svgexepath = svgexepath.replace('"%1"', '')
    36     return svgexepath.replace('"', '')
    36     return svgexepath.replace('"', '')
    37 
    37 
    38 
    38 
    39 def open_win_svg(svgexepath, svgfile):
    39 def open_win_svg(svgexepath, svgfile):