def cuckoo_init(quiet=False, debug=False, artwork=False, test=False):
 cur_path = os.getcwd()
 os.chdir(CUCKOO_ROOT)
 logo()
 check_working_directory()
 check_configs()
 check_version()
 create_structure()
 if artwork:
  import time
  try:
   while True:
    time.sleep(1)
    logo()
  except KeyboardInterrupt:
   return
 init_logging()
 if quiet:
  log.setLevel(logging.WARN)
 elif debug:
  log.setLevel(logging.DEBUG)
 init_modules()
 init_tasks()
 init_yara()
 init_binaries()
 init_rooter()
 init_routing()
 if test:
  return
 ResultServer()
 os.chdir(cur_path)

def cuckoo_init ( quiet = False , debug = False , artwork = False , test = False ) : cur_path = os . getcwd ( ) os . chdir ( CUCKOO_ROOT ) logo ( ) check_working_directory ( ) check_configs ( ) check_version ( ) create_structure ( ) if artwork : import time try : while True : time . sleep ( 1 ) logo ( ) except KeyboardInterrupt : return init_logging ( ) if quiet : log . setLevel ( logging . WARN ) elif debug : log . setLevel ( logging . DEBUG ) init_modules ( ) init_tasks ( ) init_yara ( ) init_binaries ( ) init_rooter ( ) init_routing ( ) if test : return ResultServer ( ) os . chdir ( cur_path )
cuckoo initialization workflow .