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:
JazzyNico 2012-11-16 18:59:29 -05:00 committed by Louis Simard
parent 58ddeb855b
commit 0d31f60b06

View file

@ -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()