Kaydet (Commit) 1c0d3156 authored tarafından Guido van Rossum's avatar Guido van Rossum

Delete the 'exit' command from the Tcl interpreter -- it would allow

users to exit Python without the normal precautions.  (The can do this
using os._exit() anyway, but at least that's documented.)
üst 0001a119
......@@ -337,6 +337,9 @@ Tkapp_New(screenName, baseName, className, interactive)
v->interp = Tcl_CreateInterp();
/* Delete the 'exit' command, which can screw things up */
Tcl_DeleteCommand(v->interp, "exit");
if (screenName != NULL)
Tcl_SetVar2(v->interp, "env", "DISPLAY",
screenName, TCL_GLOBAL_ONLY);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment