summaryrefslogtreecommitdiff
path: root/inkstitch.py
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2021-10-30 11:09:59 +0200
committerGitHub <noreply@github.com>2021-10-30 11:09:59 +0200
commit23e3f8d5d41f63b5471c9098bfe00c2aa805055f (patch)
tree7d82e080197491a9d191b9e3ef5e3aaed39c154b /inkstitch.py
parent7c8b24b9b2befca8c669c6efd9b641b489ca33e5 (diff)
fix manual install macOS (#1399)
Diffstat (limited to 'inkstitch.py')
-rw-r--r--inkstitch.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/inkstitch.py b/inkstitch.py
index 864c3a98..319b6691 100644
--- a/inkstitch.py
+++ b/inkstitch.py
@@ -13,8 +13,13 @@ from io import StringIO
if getattr(sys, 'frozen', None) is None:
# When running in development mode, we want to use the inkex installed by
# pip install, not the one bundled with Inkscape which is not new enough.
- sys.path.remove('/usr/share/inkscape/extensions')
- sys.path.append('/usr/share/inkscape/extensions')
+ if sys.platform == "darwin":
+ extensions_path = "/Applications/Inkscape.app/Contents/Resources/share/inkscape/extensions"
+ else:
+ extensions_path = "/usr/share/inkscape/extensions"
+
+ sys.path.remove(extensions_path)
+ sys.path.append(extensions_path)
from inkex import errormsg
from lxml.etree import XMLSyntaxError