debug stop all python

This commit is contained in:
Foufure13
2025-01-10 16:47:04 +01:00
parent a22a825704
commit b1ac5c7506
2 changed files with 1 additions and 6 deletions
-4
View File
@@ -27,11 +27,7 @@ import pty
def signal_handler(sig, frame):
os.system('killall python')
sys.exit(0)
signal.signal(signal.SIGINT, signal_handler)
console = Console() console = Console()
+1 -2
View File
@@ -34,7 +34,7 @@ from fonction.first_class import messageTwitch
from fonction.second_fonction import * from fonction.second_fonction import *
# def signal_handler(): # def r():
# os.system('killall python') # os.system('killall python')
# sys.exit(0) # sys.exit(0)
@@ -46,7 +46,6 @@ def stop_all():
recordTw.stop() recordTw.stop()
sb_translation.stop() sb_translation.stop()
ask_text.stop() ask_text.stop()
# signal_handler()
def print_help(): def print_help():
hprint("PURPLE", "Touche 'F5'BOT Active l'écoute clavier") hprint("PURPLE", "Touche 'F5'BOT Active l'écoute clavier")