I am working with Python3.7.0
on a Windows 10
machine.
I have a program that runs every 5 minutes through task scheduler and if certain parameters are met (it is a given time of day), I require user input. Otherwise, the program is ended.
Every 5 minutes, even if no user input is required, a python window pops open because the program is run through python.exe.
To avoid this problem, is there a way to run the script through pythonw.exe and open a terminal only when user input is required?
The code that I would need would be something that functions as the sudo-code below:
if (conditions are met):
open terminal window
run program in terminal window
close terminal window
else:
do nothing