Hi,

I'm working with a bunch of scripts from a 3rd party that often include 
sys.exit() blocks like the below. Is there way to get the kernel to 
automatically restart so I don't have to do that? Perhaps only after a 
specific exit code? I'm having to reboot the kernel every minute or so 
while going through the work and it's very repetitive.

if len(sys.argv) < 4:
    print(f"Usage: {sys.argv[0]} [in_file] [band#] [out_file] [band #]")
    sys.exit(1)

[...]

if dataset is None:
    print("Unable to open", input, "for reading")
    sys.exit(1)

-- 
You received this message because you are subscribed to the Google Groups 
"Pyzo" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/pyzo/1e504f71-09ea-427a-a4c0-0ddcdab0f5a3n%40googlegroups.com.

Reply via email to