# Path: rapprentice/call_and_print.py
# def call_and_print(cmd,color='green',check=True):
#     print colorize(cmd, color, bold=True)
#     if check: subprocess.check_call(cmd, shell=True)
#     else: subprocess.call(cmd, shell=True)


import rapprentice, os, os.path as osp
from rapprentice.call_and_print import call_and_print
assert osp.basename(os.getcwd()) == "test"
call_and_print("python tps_unit_tests.py")
call_and_print("python ../scripts/download_sampledata.py ~/Data --use_rsync")

# Path: rapprentice/call_and_print.py
# def call_and_print(cmd,color='green',check=True):
#     print colorize(cmd, color, bold=True)
#     if check: subprocess.check_call(cmd, shell=True)
#     else: subprocess.call(cmd, shell=True)


# Path: test/run_all_tests.py
import rapprentice, os, os.path as osp
from rapprentice.call_and_print import call_and_print

assert osp.basename(os.getcwd()) == "test"
call_and_print("python tps_unit_tests.py")
call_and_print("python ../scripts/download_sampledata.py ~/Data --use_rsync")

call_and_print("python ../scripts/generate_h5.py ~/Data/sampledata/overhand/overhand.yaml")