# 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 os
from rapprentice.call_and_print import call_and_print
os.chdir("../scripts")
od="~/henry_sandbox/rapprentice/sampledata/overhand"
call_and_print("./generate_annotations.py %(od)s/demo0_2013-04-20-15-58-09.bag %(od)s/demo0_2013-04-20-15-58-09.bag.ann.yaml"%dict(od=od))

# 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: example_pipeline/overhand.py
import os
from rapprentice.call_and_print import call_and_print

os.chdir("../scripts")
od="~/henry_sandbox/rapprentice/sampledata/overhand"
call_and_print("./generate_annotations.py %(od)s/demo0_2013-04-20-15-58-09.bag %(od)s/demo0_2013-04-20-15-58-09.bag.ann.yaml"%dict(od=od))

call_and_print("./generate_h5.py %(od)s/overhand.yaml"%dict(od=od))