I'm making a script that runs the script every 10 seconds (for example)
But i get this:
AttributeError: partially initialized module 'schedule' has no attribute 'every' (most likely due to a circular import)
My code:
import schedule
import time
def job():
print("I'm working...")
schedule.every(3).seconds.do(job)
while True:
schedule.run_pending()
time.sleep(1)