From 92bde11e300abcce76aeafbbc4a5d81277119a27 Mon Sep 17 00:00:00 2001 From: ozmikepittman Date: Thu, 24 Apr 2008 05:33:31 +0000 Subject: [PATCH] Patch for Win32 bug 176750 - Envelope and Perspective scripts report "empty string for float" --- share/extensions/perspective.py | 2 +- share/extensions/summersnight.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/share/extensions/perspective.py b/share/extensions/perspective.py index dda5606de..6b409377a 100755 --- a/share/extensions/perspective.py +++ b/share/extensions/perspective.py @@ -68,7 +68,7 @@ class Project(inkex.Effect): file = self.args[-1] id = self.options.ids[0] for query in q.keys(): - _,f,err = os.popen3("inkscape --query-%s --query-id=%s %s" % (query,id,file)) + _,f,err = os.popen3('inkscape --query-%s --query-id=%s "%s"' % (query,id,file)) q[query] = float(f.read()) f.close() err.close() diff --git a/share/extensions/summersnight.py b/share/extensions/summersnight.py index 7e1ea5868..a326d327c 100755 --- a/share/extensions/summersnight.py +++ b/share/extensions/summersnight.py @@ -47,7 +47,7 @@ class Project(inkex.Effect): file = self.args[-1] id = self.options.ids[0] for query in self.q.keys(): - _,f,err = os.popen3("inkscape --query-%s --query-id=%s %s" % (query,id,file)) + _,f,err = os.popen3('inkscape --query-%s --query-id=%s "%s"' % (query,id,file)) self.q[query] = float(f.read()) f.close() err.close() -- 2.30.2