Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: fb0928d1176a1e517cc5e46aeafbf54ff5c2554c authored by Barry Warsaw on 09 March 2010, 22:31:52 UTC
Bumping to 2.6.5rc2
Tip revision: fb0928d
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