Commit b167af1a authored by gijs's avatar gijs

A new try

parent fe32913a
......@@ -533,7 +533,13 @@ def partie ():
return True
else:
return False
# prevent sigint?
import signal
def handler(_, __):
pass
signal.signal(signal.SIGINT, handler)
while True:
if partie():
......@@ -554,8 +560,4 @@ while True:
time.sleep(5)
remise_zero()
time.sleep(3)
\ No newline at end of file
time.sleep(3)
\ No newline at end of file
#!/bin/bash
clear
trap 'echo got SIGINT' SIGINT
# function start {
# /usr/bin/python3 /home/pi/Documents/mundaneum/exhibition/laetitia_hangman/jeu_pendu.py
# }
# start();
# trap start SIGINT
while true
do
/usr/bin/python3 /home/pi/Documents/mundaneum/exhibition/laetitia_hangman/jeu_pendu.py
done
trap SIGINT
\ No newline at end of file
done
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment