Code

Extension. Fix for bug #627372 :inkscape plugin not working (sys.argv[12] wrong).
authorJazzyNico <nicoduf@yahoo.fr>
Wed, 1 Sep 2010 16:43:54 +0000 (18:43 +0200)
committerJazzyNico <nicoduf@yahoo.fr>
Wed, 1 Sep 2010 16:43:54 +0000 (18:43 +0200)
share/extensions/scour.inkscape.py

index f21e223a06ecad69c81341288c9c72d6d3c90fc7..69c2dda5dcf0ab1f4d8dd617f9c64bfce00741e3 100755 (executable)
@@ -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()