ccextractor/linux/api_testing.py

16 lines
380 B
Python
Raw Normal View History

import ccextractorapi as cc
2017-06-21 11:33:40 +00:00
import os
import time
import sys
sample = " ".join(sys.argv[1:])
print 'Name of sample is {0}'.format(sample)
time.sleep(1)
s = cc.api_init_options()
cc.checking_configuration_file(s)
params = [str(sample)]
for i in params:
cc.api_add_param(s,str(i))
compile_ret = cc.compile_params(s,len(params));
start_ret = cc.api_start(s);
os.system('clear')