title: Restart the Program when a kill signal has executed
body: <p>I currently use <code>os.kill(signal.CTRL_C_EVENT, 1)</code> to kill a thread because I wasn't able to use the normal method. But as soon as it has completed that command I want to restart the whole program. My first idea was to open a separate cmd when a task is called but didn't find any method to do that. Is there a workaround to this?</p>
  <p>I also tried having a separate file restart the file if it doesn't run. But then it starts running in the wrong cmd which will result in that <code>os.kill(signal.CTRL_C_EVENT, 1)</code> will kill the entire process.</p>