diff options
| author | Aur??lio A. Heckert <aurium@gmail.com> | 2009-09-09 17:43:37 +0000 |
|---|---|---|
| committer | aurium <aurium@users.sourceforge.net> | 2009-09-09 17:43:37 +0000 |
| commit | 6d0a09515ee7293cfa3d9f885f0779bd90ffe416 (patch) | |
| tree | 41f92cab26064af5f32024672fd88064f5b74774 | |
| parent | - Fix bug #390024: "raster image extensions fail on osx: missing ImageMagick (diff) | |
| download | inkscape-6d0a09515ee7293cfa3d9f885f0779bd90ffe416.tar.gz inkscape-6d0a09515ee7293cfa3d9f885f0779bd90ffe416.zip | |
giving svg_file property to Effect class. Make more readable code.
(bzr r8573)
| -rwxr-xr-x | share/extensions/inkex.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/share/extensions/inkex.py b/share/extensions/inkex.py index 665575c6b..b7e3e0e63 100755 --- a/share/extensions/inkex.py +++ b/share/extensions/inkex.py @@ -132,7 +132,7 @@ class Effect: try: stream = open(file,'r') except: - stream = open(self.args[-1],'r') + stream = open(self.svg_file,'r') except: stream = sys.stdin self.document = etree.parse(stream) @@ -198,6 +198,7 @@ class Effect: def affect(self, args=sys.argv[1:], output=True): """Affect an SVG document with a callback effect""" + self.svg_file = args[-1] self.getoptions(args) self.parse() self.getposinlayer() |
