summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Dufour <nicoduf@yahoo.fr>2012-11-16 14:19:01 +0000
committerJazzyNico <nicoduf@yahoo.fr>2012-11-16 14:19:01 +0000
commitbb674185ebcd2e8cebd4e59a57e8e411a960c4f8 (patch)
tree1fc8a8e8b1b3416f9ef259357fbf9ca83e34441d
parentExtensions. Fix for Bug #1075321 (TypeError: decoding Unicode is not supporte... (diff)
downloadinkscape-bb674185ebcd2e8cebd4e59a57e8e411a960c4f8.tar.gz
inkscape-bb674185ebcd2e8cebd4e59a57e8e411a960c4f8.zip
Extensions. Fix for Bug #708515 (Optimized SVG save fails with Attribute error - no infilename).
(bzr r11878)
-rwxr-xr-xshare/extensions/scour.inkscape.py3
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()