From e4b85b2fc8ff1513179c9063dd214b41a48a6b96 Mon Sep 17 00:00:00 2001 From: Florian Festi Date: Sun, 25 Nov 2018 23:07:25 +0100 Subject: [PATCH] Fix check for extension dir in setup.py inkscape -x gives the dir but adds an new line after that. Fixes #101 --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 93f4f67..4f6a2c5 100755 --- a/setup.py +++ b/setup.py @@ -19,7 +19,7 @@ class CustomBuildExtCommand(build_py): def run(self): self.execute(self.buildInkscapeExt, ()) try: - path = check_output(["inkscape", "-x"]) + path = check_output(["inkscape", "-x"]).strip() if not os.access(path, os.W_OK): # Can we install globaly # Not tested on Windows and Mac path = os.path.expanduser("~/.config/inkscape/extensions")