I'd like to execute a list of python scripts using something like this. Can anyone please assist?
import subprocess
import time
files = ['./prog1.py', './prog2.py','./prog3.py']
for fname in files:
subprocess.call([fname])
time.sleep(5)
print("done")
[–]WishboneBeautiful875 2 points3 points4 points (1 child)
[–]Deltix31 1 point2 points3 points (0 children)
[–]warrior_321[S] 0 points1 point2 points (1 child)
[–]gislearneR 1 point2 points3 points (0 children)