Jun-09-2017, 01:45 PM
You can end the program by calling sys.exit
sys.exit(main())
import sys # the rest of the program sys.exit('some message or nothing')Usually I put in sys.exit main function so the system gets the exit code of the program this way.
sys.exit(main())