From 52e86032fa172e14c7317d79825add739cadac6e Mon Sep 17 00:00:00 2001 From: Bernd Feige <627372@bugs.launchpad.net> Date: Tue, 31 Aug 2010 22:10:58 -0400 Subject: [PATCH] Future-proof the Scour Inkscape plugin's method of acquiring the name of the file to optimise. Thanks to Bernd Feige for the patch. --- scour.inkscape.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scour.inkscape.py b/scour.inkscape.py index ebbae81..e4b403e 100755 --- a/scour.inkscape.py +++ b/scour.inkscape.py @@ -57,7 +57,7 @@ class ScourInkscape (inkex.Effect): help="work around various renderer bugs (currently only librsvg)") def effect(self): - input = file(sys.argv[12], "r") + input = file(self.args[0], "r") sys.stdout.write(scourString(input.read(), self.options).encode("UTF-8")) input.close() sys.stdout.close()