Files
advent-of-code-2021/run_all.py
Pascal Lais a4741f928d
All checks were successful
continuous-integration/drone/push Build is passing
Call solutions in sorted order
2021-12-05 14:41:55 +01:00

15 lines
331 B
Python

#!/usr/bin/python3
from os import listdir
from os.path import isdir, isfile
from subprocess import run
for dir in [x for x in sorted(listdir('.')) if isdir(x)]:
file = dir + '/' + dir + '.py'
input = dir + '/input.txt'
if isfile(file) and isfile(input):
print(dir, 'result:')
run(["python3", file])