update for Pathops

This commit is contained in:
Mario Voigt 2021-10-10 23:29:49 +02:00
parent 74bc089594
commit 6ba6e1ba7c
1 changed files with 5 additions and 1 deletions

View File

@ -63,7 +63,11 @@ def timed(f):
def get_inkscape_version():
ink = inkex.command.INKSCAPE_EXECUTABLE_NAME
ink_version = inkex.command.call(ink, '--version').decode("utf-8")
try: # needed prior to 1.1
ink_version = inkex.command.call(ink, '--version').decode("utf-8")
except AttributeError: # needed starting from 1.1
ink_version = inkex.command.call(ink, '--version')
pos = ink_version.find("Inkscape ")
if pos != -1:
pos += 9