Send SIGINT in Windows using Python -
i try code in linux:
import os import signal in range(10000): print if i==6666: os.kill(os.getpid(),signal.sigint)
it works well. doesn't work in windows, because attribute 'kill' not present in os module windows
how can send sigint self program in windows?
from win32api import generateconsolectrlevent generateconsolectrlevent(ctrl_c_event, 0)
Comments
Post a Comment