from pathlib import Path import subprocess import sys ROOT = Path(__file__).resolve().parents[1] COMMANDS = [ [sys.executable, str(ROOT / 'scripts' / 'run_all_synthetic.py')], ] for cmd in COMMANDS: subprocess.check_call(cmd)