Hello @svan ,
This is a good topic! Thanks!
I have always wanted to explore these more with a variety of applications:
I launched a py5 sketch from a batch file and confirmed that the print() output appears in the command prompt.
This worked on W10 with this very simple batch file:
@echo off
REM Path to py5-run-sketch executable
set PY5_RUN=C:\Users\GLV\AppData\Local\Programs\Python\Python313\Scripts\py5-run-sketch.exe
REM Path to your Python sketch file
set SKETCH_PATH=D:\Users\GLV\Documents\P4\Stdin_java_Pythin_1_0_0\arrows2.py
REM Run py5-run-sketch on the sketch file
"%PY5_RUN%" "%SKETCH_PATH%"
REM Keep window open so you can read output
pause
Note to visitors to topic:
Those are the directories on my system.
Adjust as required.
I am sure it is easier on Linux and I may get back to using that soon!
:)