source: python/vendor/Python-2.6.5/Mac/Tools/pythonw.c

Last change on this file was 2, checked in by Yuri Dario, 15 years ago

Initial import for vendor code.

  • Property svn:eol-style set to native
File size: 450 bytes
Line 
1/*
2 * This wrapper program executes a python executable hidden inside an
3 * application bundle inside the Python framework. This is needed to run
4 * GUI code: some GUI API's don't work unless the program is inside an
5 * application bundle.
6 */
7#include <unistd.h>
8#include <err.h>
9
10static char Python[] = PYTHONWEXECUTABLE;
11
12int main(int argc, char **argv) {
13 argv[0] = Python;
14 execv(Python, argv);
15 err(1, "execv: %s", Python);
16 /* NOTREACHED */
17}
Note: See TracBrowser for help on using the repository browser.