diff Python/pythonrun.c @ 2269:a8c6da3bd305 legacy-trunk

Think C mod to suppress pausing at normal exit
author Guido van Rossum <guido@python.org>
date Mon, 30 Jan 1995 12:52:46 +0000
parents d3b5be0c872f
children 618701cdf600
line wrap: on
line diff
--- a/Python/pythonrun.c	Mon Jan 30 12:45:38 1995 +0000
+++ b/Python/pythonrun.c	Mon Jan 30 12:52:46 1995 +0000
@@ -44,6 +44,10 @@
 #include <signal.h>
 #endif
 
+#ifdef THINK_C
+#include <console.h>
+#endif
+
 extern char *getpythonpath();
 
 extern grammar gram; /* From graminit.c */
@@ -637,6 +641,10 @@
 	}
 #endif /* TRACE_REFS */
 
+#ifdef THINK_C
+	if (sts == 0)
+		console_options.pause_atexit = 0;
+#endif
 	exit(sts);
 #endif /* WITH_THREAD */
 	/*NOTREACHED*/