2017-06-27 09:18:32 +00:00
|
|
|
import ccextractor as cc
|
2017-06-21 11:33:40 +00:00
|
|
|
import os
|
2017-06-22 15:22:14 +00:00
|
|
|
import time
|
|
|
|
import sys
|
2017-05-31 10:52:07 +00:00
|
|
|
s = cc.api_init_options()
|
2017-07-06 22:58:23 +00:00
|
|
|
cc.check_configuration_file(s)
|
2017-06-28 21:35:32 +00:00
|
|
|
for i in sys.argv[1:]:
|
2017-06-22 15:22:14 +00:00
|
|
|
cc.api_add_param(s,str(i))
|
2017-06-28 21:35:32 +00:00
|
|
|
compile_ret = cc.compile_params(s,len(sys.argv[1:]));
|
2017-05-31 10:52:07 +00:00
|
|
|
start_ret = cc.api_start(s);
|
2017-07-10 08:55:52 +00:00
|
|
|
#print cc.cc_to_python_get_subs_number_of_lines()
|
|
|
|
#print cc.cc_to_python_get_sub[0]
|
|
|
|
|
|
|
|
#print cc.cvar.python_subs.number_of_lines
|
|
|
|
#print type(cc.cvar.python_subs.subs)
|
|
|
|
for item in xrange(cc.cc_to_python_get_subs_number_of_lines()):
|
|
|
|
print item, cc.cc_to_python_get_sub(item)
|
2017-07-06 17:39:17 +00:00
|
|
|
|
2017-06-28 21:35:32 +00:00
|
|
|
#os.system('clear')
|