Added hooke.plugin.playlist.ApplyCommandStack and related changes.
[hooke.git] / hooke / ui / commandline.py
index 5f04c366623a0db03689ab29284b19bef6a664a3..192918edfe24b846160d33440d9ad69dbf473625 100644 (file)
@@ -129,8 +129,9 @@ class DoCommand (CommandMethod):
             self.cmd.stdout.write(str(e).lstrip()+'\n')
             self.cmd.stdout.write('Failure\n')
             return
             self.cmd.stdout.write(str(e).lstrip()+'\n')
             self.cmd.stdout.write('Failure\n')
             return
-        self.log.debug('executing %s with %s' % (self.command.name, args))
-        self.cmd.inqueue.put(CommandMessage(self.command.name, args))
+        cm = CommandMessage(self.command.name, args)
+        self.log.debug('executing %s' % cm)
+        self.cmd.inqueue.put(cm)
         while True:
             msg = self.cmd.outqueue.get()
             if isinstance(msg, Exit):
         while True:
             msg = self.cmd.outqueue.get()
             if isinstance(msg, Exit):