Amaury Forgeot d'Arc <amaur...@gmail.com> added the comment: on Windows, exec() does not really replace the current process. It creates a new process (with a new pid), and exits the current one.
Hence the calling program only sees that the script has terminated. I don't see any easy solution on Windows, except than using subprocess.Popen(), and exit the script when the subprocess terminates. ---------- nosy: +amaury.forgeotdarc _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue9148> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com