I want to run my script
control_as_py
forever. I tried
while True:
import control_as_py
but for some reasons, it runs the script ones and then stopps. How can I change that?
I want to run my script
control_as_py
forever. I tried
while True:
import control_as_py
but for some reasons, it runs the script ones and then stopps. How can I change that?
Wrap the code that you want to run inside a function.
in control_as_py
def dostuff ():
#Write here what you want to run forever
in main.py
from control_as_py import dostuff
while True:
dostuff()