diff options
| author | Eltrac <hi@guhub.cn> | 2025-08-17 23:29:47 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-08-17 23:29:47 +0800 |
| commit | 621f7e411f31e8c584209d7f0a37195c3c7f1e8c (patch) | |
| tree | 20e0915d176da56f8be433d25d6318b0e30d030e /scripts/run_scripts.py | |
| parent | cd192c76e2d0857ed437b612542f1a6c21be2353 (diff) | |
feat: add a page listing all highlights
Diffstat (limited to 'scripts/run_scripts.py')
| -rw-r--r-- | scripts/run_scripts.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/run_scripts.py b/scripts/run_scripts.py new file mode 100644 index 00000000..71764a11 --- /dev/null +++ b/scripts/run_scripts.py @@ -0,0 +1,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) |
