Code

Patch for Win32 bug 176750 - Envelope and Perspective scripts report "empty string...
authorozmikepittman <ozmikepittman@users.sourceforge.net>
Thu, 24 Apr 2008 05:33:31 +0000 (05:33 +0000)
committerozmikepittman <ozmikepittman@users.sourceforge.net>
Thu, 24 Apr 2008 05:33:31 +0000 (05:33 +0000)
share/extensions/perspective.py
share/extensions/summersnight.py

index dda5606deb9854109f6c1742fc6e36def2e0ce8b..6b409377aa96ae50c8545179e9bcb0c3b3c6aba5 100755 (executable)
@@ -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()
index 7e1ea58686e29118710947f3e7dd39a78c2cdee5..a326d327cf75cd83e9de01aafd73aef349df1fba 100755 (executable)
@@ -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()