-
|
For context, I have a sort of chat log component that displays messages printed out by my Python program child process spawned by Tauri Command API. I have here a simplified form to illustrate my problem: index.tsx main.py Both Javascript and Python code have been simplified. The actual Python code works fine except for this one issue. The issue that I have been encountering is that stdout sends the print messages after the child process has ended. The expected behavior is that "Hello!" is console logged, wait 3 seconds, then the last 2 messages are console logged. Instead, all 3 messages are console logged at the same time after waiting 3 seconds. So my question is, does Tauri Command API read from stdout in realtime or does it output everything in stdout after the child process ends? I have another issue regarding getting stdout from a child process spawned by the original child process using |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
Nevermind what I posted, the answer was that I needed to flush the print statements. That also fixed my second problem. |
Beta Was this translation helpful? Give feedback.
Nevermind what I posted, the answer was that I needed to flush the print statements. That also fixed my second problem.