diff options
| author | Nicolas Dufour <nicoduf@yahoo.fr> | 2012-11-16 14:19:01 +0000 |
|---|---|---|
| committer | JazzyNico <nicoduf@yahoo.fr> | 2012-11-16 14:19:01 +0000 |
| commit | bb674185ebcd2e8cebd4e59a57e8e411a960c4f8 (patch) | |
| tree | 1fc8a8e8b1b3416f9ef259357fbf9ca83e34441d | |
| parent | Extensions. Fix for Bug #1075321 (TypeError: decoding Unicode is not supporte... (diff) | |
| download | inkscape-bb674185ebcd2e8cebd4e59a57e8e411a960c4f8.tar.gz inkscape-bb674185ebcd2e8cebd4e59a57e8e411a960c4f8.zip | |
Extensions. Fix for Bug #708515 (Optimized SVG save fails with Attribute error - no infilename).
(bzr r11878)
| -rwxr-xr-x | share/extensions/scour.inkscape.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/share/extensions/scour.inkscape.py b/share/extensions/scour.inkscape.py index 1cc7744d9..f161a09c2 100755 --- a/share/extensions/scour.inkscape.py +++ b/share/extensions/scour.inkscape.py @@ -65,8 +65,9 @@ class ScourInkscape (inkex.Effect): action="store", dest="renderer_workaround", default=False, help="work around various renderer bugs (currently only librsvg)") - def effect(self): + def effect(self): input = file(self.args[0], "r") + self.options.infilename=self.args[0] sys.stdout.write(scourString(input.read(), self.options).encode("UTF-8")) input.close() sys.stdout.close() |
