From: JazzyNico Date: Wed, 1 Sep 2010 16:43:54 +0000 (+0200) Subject: Extension. Fix for bug #627372 :inkscape plugin not working (sys.argv[12] wrong). X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=030d940209adaf51717d48159c683c512a242f8e;p=inkscape.git Extension. Fix for bug #627372 :inkscape plugin not working (sys.argv[12] wrong). --- diff --git a/share/extensions/scour.inkscape.py b/share/extensions/scour.inkscape.py index f21e223a0..69c2dda5d 100755 --- a/share/extensions/scour.inkscape.py +++ b/share/extensions/scour.inkscape.py @@ -43,7 +43,7 @@ class ScourInkscape (inkex.Effect): 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()