diff options
| author | Aur??lio A. Heckert <aurium@gmail.com> | 2009-01-09 00:27:15 +0000 |
|---|---|---|
| committer | aurium <aurium@users.sourceforge.net> | 2009-01-09 00:27:15 +0000 |
| commit | da7a8caa213ea6026f956fbc32d473c90a93f5c1 (patch) | |
| tree | a86b164a9ec666ae49d79778ff7481f1a74c0bb4 | |
| parent | fix build (diff) | |
| download | inkscape-da7a8caa213ea6026f956fbc32d473c90a93f5c1.tar.gz inkscape-da7a8caa213ea6026f956fbc32d473c90a93f5c1.zip | |
little change to meke extensions more testables
(bzr r7099)
| -rwxr-xr-x | share/extensions/inkex.py | 6 |
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 |
