From: ozmikepittman Date: Thu, 24 Apr 2008 05:33:31 +0000 (+0000) Subject: Patch for Win32 bug 176750 - Envelope and Perspective scripts report "empty string... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=92bde11e300abcce76aeafbbc4a5d81277119a27;p=inkscape.git Patch for Win32 bug 176750 - Envelope and Perspective scripts report "empty string for float" --- 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()