def do_bf():
	i = 0
	try:
                filename = "codes.txt"
		FILE  = open (filename,"r" )   
		codes = FILE.readlines()
		FILE.close()
	except __HOLE__:
		screenLock.acquire()
		print "[+] codes.txt file not found! \n[+] Please put codes into codes.txt and re-run the program\n"
		screenLock.release()
		sys.exit(1)
	
	for code in codes:
		if code.find("#") >= 0:
			continue
                cmd = 'pilight-send -p raw -c "' + code.strip() + '"'
		screenLock.acquire()
		i = i + 1
		print(str(i) + " | " + cmd)
		screenLock.release()
		os.system(cmd)
		time.sleep(0.2)
dataset/ETHPy150Open mertsarica/hack4career/codes/pilight-bf.py/do_bf