Skip to content

Commit

Permalink
add support for proper CTRL + C
Browse files Browse the repository at this point in the history
  • Loading branch information
NevermindNilas committed Sep 15, 2024
1 parent 3e5c956 commit dc45edc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import sys
import logging
import platform
import signal

from alive_progress import alive_bar
from concurrent.futures import ThreadPoolExecutor
Expand Down Expand Up @@ -311,6 +312,7 @@ def start(self):

if __name__ == "__main__":
mp.freeze_support()
signal.signal(signal.SIGINT, signal.SIG_DFL)
logging.basicConfig(
filename=os.path.join(mainPath, "log.txt"),
filemode="w",
Expand Down

0 comments on commit dc45edc

Please sign in to comment.