2013-03-14 15:26:18 +08:00
|
|
|
#/usr/bin/env python
|
|
|
|
|
2013-06-19 11:59:22 +08:00
|
|
|
# add the hdr_parser to the path
|
2013-03-14 15:26:18 +08:00
|
|
|
import sys
|
2013-06-19 11:59:22 +08:00
|
|
|
sys.path.append(sys.argv[1])
|
2013-03-14 15:26:18 +08:00
|
|
|
|
|
|
|
# get the IO from the command line arguments
|
2013-06-19 11:59:22 +08:00
|
|
|
input_files = sys.argv[2:-1]
|
2013-03-14 15:26:18 +08:00
|
|
|
output_dir = sys.argv[-1]
|
|
|
|
|
|
|
|
# create the generator
|
2013-06-19 11:59:22 +08:00
|
|
|
from gen_matlab import MatlabWrapperGenerator
|
2013-03-14 15:26:18 +08:00
|
|
|
mwg = MatlabWrapperGenerator()
|
|
|
|
mwg.gen(input_files, output_dir)
|