Friends I am developing a script in python, I think this compile to .exe. and for that I'm using cx_Freeze.
Now in my .py I want to develop a function that I run the script automatically every 5 sec and for this I am using:
scheduler = Scheduler()
scheduler.add(5, 0, funcion)
while True:
scheduler.run()
But the problem was that when I compiled it, why could not execute the .exe successfully. Apparently I have solved it by changing some parameters of the script. I am testing the script in several ways, until now it is working ... I will continue with the testing, but for now I will not close the question. I receive all kinds of suggestions ....