#! /usr/bin/python 
#
# ancc - Compile shell for C/C++ annotation software
#

import os, sys
ann_dir = 'ANNOTATIONS_DIR'

if os.getenv(ann_dir) == None:
    error_msg  = 'error: environment variable %s is undefined, \n' % ann_dir
    error_msg += '       please set it to the top-level annotations directory'
    print error_msg
    sys.exit(-1)
else:
    sys.path.append(os.getenv(ann_dir))
    
import src.main
src.main.main(sys.argv, src.main.C_CPP)

