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

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -