diff options
| author | Lex Neva <github.com@lexneva.name> | 2021-08-07 10:58:02 -0400 |
|---|---|---|
| committer | Lex Neva <github.com@lexneva.name> | 2021-08-07 10:58:02 -0400 |
| commit | 12ef0c84aa732623b210fdce1a7b8301aa435217 (patch) | |
| tree | 4c7fbb33c4840be4bf8d8fecfd7fe481d0e56895 /inkstitch.py | |
| parent | c1e6558f7852def419adfbeb087b2194e6030a2c (diff) | |
| parent | d6e20fae8a03ac162ae0c863fff06b5bd8b77902 (diff) | |
Merge remote-tracking branch 'origin/main' into kaalleen/satin-patterns
Diffstat (limited to 'inkstitch.py')
| -rw-r--r-- | inkstitch.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/inkstitch.py b/inkstitch.py index 4c9d2789..864c3a98 100644 --- a/inkstitch.py +++ b/inkstitch.py @@ -10,6 +10,12 @@ import traceback from argparse import ArgumentParser 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') + from inkex import errormsg from lxml.etree import XMLSyntaxError @@ -27,7 +33,6 @@ formatter = logging.Formatter('%(name)s - %(levelname)s - %(message)s') ch.setFormatter(formatter) logger.addHandler(ch) - parser = ArgumentParser() parser.add_argument("--extension") my_args, remaining_args = parser.parse_known_args() |
