Update leenkx/blender/lnx/make.py

This commit is contained in:
LeenkxTeam 2025-03-23 13:17:06 +00:00
parent a747f89438
commit 609477737e

View File

@ -75,6 +75,11 @@ def run_proc(cmd, done: Callable) -> subprocess.Popen:
# Put the done callback into the callback queue so that it # Put the done callback into the callback queue so that it
# can be received by a polling function in the main thread # can be received by a polling function in the main thread
thread_callback_queue.put([threading.current_thread(), done], block=True) thread_callback_queue.put([threading.current_thread(), done], block=True)
while not thread_callback_queue.empty():
print("Processing callback from thread:", threading.current_thread())
thread, callback = thread_callback_queue.get()
if callback is not None:
callback()
else: else:
done() done()