Shard Shard - 1 year ago 143
Python Question

Stop python from closing on error

In python when running scripts is there a way to stop the console window from closing after spitting out the traceback?

Answer Source

If you doing this on a Windows OS, you can prefix the target of your shortcut with:

C:\WINDOWS\system32\cmd.exe /K <command>

This will prevent the window from closing when the command exits.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download