I have an application developed with python that makes a call to a subprocess.run(...) function when pushing a button in the interface:
subprocess.run(['java','-jar','myprogram.jar',testFile], capture_output=True)
This opens a temporary console that runs for a few seconds before closing itself.
Is there any way to avoid the console popping out?