From 7ab97934abee380cbfa9cb940c46f83aa55dd3e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Rosen?= Date: Sat, 13 Dec 2014 18:58:40 +0100 Subject: [PATCH] official/generate_image_txt : use coroutine.yield now that it's fixed --- official/generate_image_txt.lua | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/official/generate_image_txt.lua b/official/generate_image_txt.lua index 1f0efed..7d8b697 100644 --- a/official/generate_image_txt.lua +++ b/official/generate_image_txt.lua @@ -97,10 +97,7 @@ dt.register_event("mouse-over-image-changed", function(event, img) local command = command_setting:gsub("%$%(FILE_NAME%)", '"'..img_filename..'"')..' > "'..txt_filename..'"' -- finally, run it - -- I am using os.execute here since we are in our own thread anyway, and for some reason coroutine.yield doesn't work reliable for me - os.execute(command) --- coroutine.yield("RUN_COMMAND", command) --- coroutine.yield("RUN_COMMAND", "echo foo") -- only gets fired once + coroutine.yield("RUN_COMMAND", command) end )