Future-proof the Scour Inkscape plugin's method of acquiring the name of the file to optimise. Thanks to Bernd Feige for the patch.
This commit is contained in:
parent
b7277e0877
commit
52e86032fa
1 changed files with 1 additions and 1 deletions
|
|
@ -57,7 +57,7 @@ class ScourInkscape (inkex.Effect):
|
||||||
help="work around various renderer bugs (currently only librsvg)")
|
help="work around various renderer bugs (currently only librsvg)")
|
||||||
|
|
||||||
def effect(self):
|
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"))
|
sys.stdout.write(scourString(input.read(), self.options).encode("UTF-8"))
|
||||||
input.close()
|
input.close()
|
||||||
sys.stdout.close()
|
sys.stdout.close()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue