# Use shbang to run the 3 piperuns

import os
from subprocess import call

# print the cwd
print('Current working directory:', os.getcwd())

# Load all piperun names in by finding them in the current dir
piperuns = [f for f in os.listdir('.') if f.startswith('piperun')]

print('Found piperuns:', piperuns)

# Run each piperun
for piperun in piperuns:
    print('Running', piperun)
    call(['darepyperun.py', piperun])
    print('Done', piperun)
    print()

