- Posts: 1
- Joined: Fri Jul 19, 2019 6:34 pm
- Real Name: Emmanuel Rojas Fredini
Triggering the script every few seconds should be easy if you run it inside an infinite loop like:
- Code: Select all
while True:
do_something()
time.sleep(5000)
Triggering the script after a save is interesting. Whether you're running PostgreSQL or Disk Database, which I think is SQLite, you'd need to frequently query the database and somehow figure out when the project has been saved. If you find a solution post back, I'd love to know.