diff options
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() |
