fix manual install macOS (#1399)

pull/1418/head
Kaalleen 2021-10-30 11:09:59 +02:00 zatwierdzone przez GitHub
rodzic 7c8b24b9b2
commit 23e3f8d5d4
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 7 dodań i 2 usunięć

Wyświetl plik

@ -13,8 +13,13 @@ from io import StringIO
if getattr(sys, 'frozen', None) is None: if getattr(sys, 'frozen', None) is None:
# When running in development mode, we want to use the inkex installed by # 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. # pip install, not the one bundled with Inkscape which is not new enough.
sys.path.remove('/usr/share/inkscape/extensions') if sys.platform == "darwin":
sys.path.append('/usr/share/inkscape/extensions') 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 inkex import errormsg
from lxml.etree import XMLSyntaxError from lxml.etree import XMLSyntaxError