import glob import subprocess import sys scripts = glob.glob("./scripts/*") scripts.sort() for script in scripts: print(script) subprocess.call([sys.executable, script])