summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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()