Added hooke.plugin.playlist.ApplyCommandStack and related changes.
[hooke.git] / hooke / hooke.py
index 70ca59a594b1cf3e2eb86e60e824525438148961..c475d3acb756d42bdff14328f84990f20659fa02 100644 (file)
@@ -123,7 +123,7 @@ class Hooke (object):
             self.config.write()  # Does not preserve original comments
 
     def run_command(self, command, arguments):
-        """Run `command` with `arguments` using
+        """Run the command named `command` with `arguments` using
         :meth:`~hooke.engine.CommandEngine.run_command`.
 
         Allows for running commands without spawning another process
@@ -169,6 +169,7 @@ class HookeRunner (object):
         command = multiprocessing.Process(name='command engine',
             target=hooke.engine.run, args=(hooke, ui_to_command, command_to_ui))
         command.start()
+        hooke.engine = None  # no more need for the UI-side version.
         return (ui_to_command, command_to_ui, command)
 
     def _cleanup_run(self, ui_to_command, command_to_ui, command):