[kupfer] objects: Quote script path in Execute properly



commit 16068aa7f04a4dfd424a21b467ecf1cf52aa69f3
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date:   Sun Sep 6 23:12:21 2009 +0200

    objects: Quote script path in Execute properly

 kupfer/objects.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/kupfer/objects.py b/kupfer/objects.py
index b93b0fe..9167185 100644
--- a/kupfer/objects.py
+++ b/kupfer/objects.py
@@ -730,7 +730,7 @@ class Execute (Launch):
 		return self.in_terminal
 	
 	def activate(self, leaf):
-		cli = "%s %s" % (leaf.object, self.args)
+		cli = "'%s' %s" % (leaf.object, self.args)
 		utils.launch_commandline(cli, in_terminal=self.in_terminal)
 
 	def get_description(self):



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]