I have currently created a python script that runs when I double click and open it. It then creates/overwrites a geojson file. I would like to automate this script to run every minute. I have used:
import time
while True:
# code goes here
time.sleep(60)
This code works. However, it only works when I have the python file opened up by double clicking it. If I do not have it opened, the code does not run and the file will not be overwritten. Is there a piece of code I can write to tell python to run the code, even if the .py file is not open?