import schedule import time from os import system
def job(): system(‘file.py\')
schedule.every(2).minutes.do(job) while True: schedule.run_pending() time