official/generate_image_txt : use coroutine.yield now that it's fixed

This commit is contained in:
Jérémy Rosen
2014-12-13 18:58:40 +01:00
parent abccac9e97
commit 7ab97934ab

View File

@@ -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
)