summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xshare/extensions/inkex.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/share/extensions/inkex.py b/share/extensions/inkex.py
index d395769d3..49f875ac2 100755
--- a/share/extensions/inkex.py
+++ b/share/extensions/inkex.py
@@ -165,15 +165,15 @@ class Effect:
def output(self):
"""Serialize document into XML on stdout"""
self.document.write(sys.stdout)
- def affect(self):
+ def affect(self, args=sys.argv[1:], output=True):
"""Affect an SVG document with a callback effect"""
- self.getoptions()
+ self.getoptions(args)
self.parse()
self.getposinlayer()
self.getselected()
self.getdocids()
self.effect()
- self.output()
+ if output: self.output()
def uniqueId(self, old_id, make_new_id = True):
new_id = old_id