Fix the Inkscape module being unable to work on SVG documents that contain embedded images.
scour.inkscape.py: Pass the input file's name.
This commit is contained in:
parent
58ddeb855b
commit
0d31f60b06
1 changed files with 1 additions and 0 deletions
|
|
@ -67,6 +67,7 @@ class ScourInkscape (inkex.Effect):
|
||||||
|
|
||||||
def effect(self):
|
def effect(self):
|
||||||
input = file(self.args[0], "r")
|
input = file(self.args[0], "r")
|
||||||
|
self.options.infilename = self.args[0]
|
||||||
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