Skip to content

Commit

Permalink
previewer raise_signal instead of interrupt_main
Browse files Browse the repository at this point in the history
tested on windows, python 3.11 and ubuntu with python 3.10
  • Loading branch information
idanpa committed Mar 8, 2024
1 parent 7055c02 commit 806bfbb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions previewer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
signal.signal(signal.SIGINT, signal.SIG_IGN)

import threading
import _thread
import os
import io
import ast
Expand Down Expand Up @@ -146,7 +145,7 @@ def ask_restart(self):

def ctrl_c(self):
print('sending SIGINT')
_thread.interrupt_main()
signal.raise_signal(signal.SIGINT)

def run(self):
if self.interactive:
Expand Down

0 comments on commit 806bfbb

Please sign in to comment.