Output depending on input, instead numbers appear on the output window and stuff appears on the input window. #2388
-
Hey, I'm sorry for once again reporting something, but I have gotten an issue that is very weird. I've linked a video showing the bug. the.bug.mp4Here's the code:
if name == 'main': |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
This isn't really a Textual issue, but... from what I'm seeing in the video the code is working as you've coded it. By the looks if things you're wanting to capture the output when running a subprocess? If so, you probably want to have a read over the Python subprocess documentation to see how to do that. |
Beta Was this translation helpful? Give feedback.
From the docs for
subprocess.call
:Here's a quick demo which might help explain this:
You want to check the output from the executed command - perhaps there's a another subprocess function that would help here...?