# HG changeset patch # User Andrey Skvortsov # Date 1505230333 -10800 # Node ID 58ff550535188c27a1b5a16b03fc81246702acc3 # Parent 1711339585ce30bc8f8971f0ee3a857b54347529 found installed Inkscape on Windows tested with Inkscape version 0.9 on Windows 7. diff -r 1711339585ce -r 58ff55053518 docutil/docsvg.py --- a/docutil/docsvg.py Tue Sep 12 16:49:35 2017 +0300 +++ b/docutil/docsvg.py Tue Sep 12 18:32:13 2017 +0300 @@ -30,8 +30,12 @@ def get_inkscape_path(): """ Return the Inkscape path """ import _winreg - svgexepath = _winreg.QueryValue(_winreg.HKEY_LOCAL_MACHINE, - 'Software\\Classes\\svgfile\\shell\\Inkscape\\command') + try: + svgexepath = _winreg.QueryValue(_winreg.HKEY_LOCAL_MACHINE, + 'Software\\Classes\\svgfile\\shell\\Inkscape\\command') + except WindowsError: + svgexepath = _winreg.QueryValue(_winreg.HKEY_LOCAL_MACHINE, + 'Software\\Classes\\inkscape.svg\\shell\\open\\command') svgexepath = svgexepath.replace('"%1"', '') return svgexepath.replace('"', '')