summaryrefslogtreecommitdiff
path: root/scripts/run_scripts.py
blob: 71764a1110172e83fcf4e1715a156d2e133f9032 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
import os
import subprocess
import sys

SCRIPTS_DIR = "scripts"
SELF = os.path.basename(__file__)

for filename in sorted(os.listdir(SCRIPTS_DIR)):
    if filename.endswith(".py") and filename != SELF:
        path = os.path.join(SCRIPTS_DIR, filename)
        print(f"▶ Running {path} ...")
        subprocess.run([sys.executable, path], check=True)