Did I find the right examples for you? yes no

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)
Drop-in replacement for sys.exit that will automatically detect
bare consoles and wait for user input before closing.

        def nice_exit(ret=0):
    """Drop-in replacement for sys.exit that will automatically detect
    bare consoles and wait for user input before closing.
    """
    if ret and is_bare_console():
        print
        print "Press [Enter] to close this window."
        raw_input()
    sys.exit(ret)
        


src/m/i/Minecraft-Overviewer-HEAD/overviewer_core/__init__.py   Minecraft-Overviewer(Download)
    ret = check_c_overviewer()
    if ret > 0:
        util.nice_exit(ret)