def cuckoo_main(max_analysis_count=0):
 cur_path = os.getcwd()
 os.chdir(CUCKOO_ROOT)
 try:
  sched = Scheduler(max_analysis_count)
  sched.start()
 except KeyboardInterrupt:
  sched.stop()
 os.chdir(cur_path)

def cuckoo_main ( max_analysis_count = 0 ) : cur_path = os . getcwd ( ) os . chdir ( CUCKOO_ROOT ) try : sched = Scheduler ( max_analysis_count ) sched . start ( ) except KeyboardInterrupt : sched . stop ( ) os . chdir ( cur_path )
cuckoo main loop .