equal
deleted
inserted
replaced
28 |
28 |
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 try: |
34 'Software\\Classes\\svgfile\\shell\\Inkscape\\command') |
34 svgexepath = _winreg.QueryValue(_winreg.HKEY_LOCAL_MACHINE, |
|
35 'Software\\Classes\\svgfile\\shell\\Inkscape\\command') |
|
36 except WindowsError: |
|
37 svgexepath = _winreg.QueryValue(_winreg.HKEY_LOCAL_MACHINE, |
|
38 'Software\\Classes\\inkscape.svg\\shell\\open\\command') |
35 svgexepath = svgexepath.replace('"%1"', '') |
39 svgexepath = svgexepath.replace('"%1"', '') |
36 return svgexepath.replace('"', '') |
40 return svgexepath.replace('"', '') |
37 |
41 |
38 |
42 |
39 def open_win_svg(svgexepath, svgfile): |
43 def open_win_svg(svgexepath, svgfile): |