From 201d4c66614d2f06055ea3e4a1377c5db35f9406 Mon Sep 17 00:00:00 2001 From: Mario Voigt Date: Wed, 30 Nov 2022 14:41:25 +0100 Subject: [PATCH] fix in boxes_proxy.py --- extensions/fablabchemnitz/boxes.py/boxes_proxy.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/extensions/fablabchemnitz/boxes.py/boxes_proxy.py b/extensions/fablabchemnitz/boxes.py/boxes_proxy.py index 9459668..8a939ef 100644 --- a/extensions/fablabchemnitz/boxes.py/boxes_proxy.py +++ b/extensions/fablabchemnitz/boxes.py/boxes_proxy.py @@ -44,11 +44,12 @@ class boxesPyWrapper(inkex.GenerateExtension): #fix behaviour of "original" arg which does not correctly gets interpreted if set to false if arg == "original" and str(getattr(self.options, arg)) == "false": continue - if arg in ("input_file", "tab"): + if arg in ("input_file", "tab", "labels"): continue else: - cmd += " --" + arg + " " + str(getattr(self.options, arg)) - cmd += " --output " + box_file + " " + box_file #we need to add box_file string twice in a row. Otherwise program executable throws an error + cmd += ' --' + arg + ' "' + str(getattr(self.options, arg)) + '"' + #cmd += ' --' + arg + '="' + str(getattr(self.options, arg)) + '"' + cmd += " --output=" + box_file + " " cmd = cmd.replace("boxes --generator", "boxes") # run boxes with the parameters provided