From 2b95dba994259a9015dac78c9e3be31f9f066dde Mon Sep 17 00:00:00 2001 From: Alexander Druz Date: Thu, 13 Jul 2023 13:15:55 +0200 Subject: [PATCH] Do not handle SIGHUP in CLI on Windows --- renumics/spotlight/cli.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/renumics/spotlight/cli.py b/renumics/spotlight/cli.py index 375393ce..bd918b4f 100644 --- a/renumics/spotlight/cli.py +++ b/renumics/spotlight/cli.py @@ -3,6 +3,7 @@ Command line entrypoint for the renumics-spotlight python package """ import os +import platform import signal import sys from typing import Optional, Tuple, Union @@ -122,7 +123,8 @@ def main( signal.signal(signal.SIGINT, lambda *_: sys.exit()) signal.signal(signal.SIGTERM, lambda *_: sys.exit()) - signal.signal(signal.SIGHUP, lambda *_: sys.exit()) + if platform.system() != "Windows": + signal.signal(signal.SIGHUP, lambda *_: sys.exit()) spotlight.show( table_or_folder,