From c32706adc396131b51e3464d03eea6ca85118165 Mon Sep 17 00:00:00 2001 From: Florian Festi Date: Tue, 20 Apr 2021 22:32:37 +0200 Subject: [PATCH] setup.py: Adjust to new Inkscape command line inkscape -x no longer is supported. There are now separate commands for the system and user data directories. --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 3677756..a8bc92c 100755 --- a/setup.py +++ b/setup.py @@ -58,7 +58,8 @@ class CustomBuildExtCommand(build_py): # we are surely not building a Debian package # then here is the default behavior: try: - path = check_output(["inkscape", "-x"]).decode().strip() + path = check_output(["inkscape", "--system-data-directory"]).decode().strip() + path = os.path.join(path, "extensions") if not os.access(path, os.W_OK): # Can we install globally # Not tested on Windows and Mac path = os.path.expanduser("~/.config/inkscape/extensions")