File: run-all.py

package info (click to toggle)
orange3 3.40.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 15,908 kB
  • sloc: python: 162,745; ansic: 622; makefile: 322; sh: 93; cpp: 77
file content (13 lines) | stat: -rw-r--r-- 234 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
"""
Runs all the scripts in the directory.
"""

import glob
import sys

scripts = set(glob.glob("*.py")).difference([sys.argv[0]])
for script in scripts:
    print("-" * 70)
    print(script)
    print()
    exec(open(script).read())