From 6ba6e1ba7c290646cea1713f700a643de92aa67e Mon Sep 17 00:00:00 2001 From: Mario Voigt Date: Sun, 10 Oct 2021 23:29:49 +0200 Subject: [PATCH] update for Pathops --- extensions/fablabchemnitz/pathops/pathops.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/extensions/fablabchemnitz/pathops/pathops.py b/extensions/fablabchemnitz/pathops/pathops.py index 16488a9e..87178d7c 100644 --- a/extensions/fablabchemnitz/pathops/pathops.py +++ b/extensions/fablabchemnitz/pathops/pathops.py @@ -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