Staging
v0.5.1
v0.5.1
Revision a7077c865d76afe0bc9640ec0b8f2aa6c0df6f4b authored by Barry Warsaw on 16 August 2010, 22:58:18 UTC, committed by Barry Warsaw on 16 August 2010, 22:58:18 UTC
1 parent 841f7ed
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 */
}
Computing file changes ...