you could start the script in cmd (or terminal if you are on linux) instead of visual studio using python <filename.py> or python3 <filename.py if you have python 2 and python 3 installed
I'm in my script using the os.startfile("program_path") command and it opens the program without any problem in visual studio.
However as soon as I close visual studio, the program I started also closes.
Is there a way to keep the program running even though I've closed visual studio?
how do i keep a started program open after closing the script