Staging
v0.5.1
https://github.com/python/cpython
Revision 28e0873f1f89d0d80ab64fabeb805de813ec08e4 authored by Georg Brandl on 30 April 2008, 19:47:09 UTC, committed by Georg Brandl on 30 April 2008, 19:47:09 UTC
1 parent 46d6b68
Raw File
Tip revision: 28e0873f1f89d0d80ab64fabeb805de813ec08e4 authored by Georg Brandl on 30 April 2008, 19:47:09 UTC
#2719: backport next() from 3k.
Tip revision: 28e0873
pythonw.c
/*
 * This wrapper program executes a python executable hidden inside an
 * application bundle inside the Python framework. This is needed to run
 * GUI code: some GUI API's don't work unless the program is inside an
 * application bundle.
 */
#include <unistd.h>
#include <err.h>

static char Python[] = PYTHONWEXECUTABLE;

int main(int argc, char **argv) {
	argv[0] = Python;
	execv(Python, argv);
	err(1, "execv: %s", Python);
	/* NOTREACHED */
}
back to top