~ubuntu-branches/ubuntu/maverick/python3.1/maverick

« back to all changes in this revision

Viewing changes to Mac/Tools/pythonw.c

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2009-03-23 00:01:27 UTC
  • Revision ID: james.westby@ubuntu.com-20090323000127-5fstfxju4ufrhthq
Tags: upstream-3.1~a1+20090322
ImportĀ upstreamĀ versionĀ 3.1~a1+20090322

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
 
10
static char Python[] = PYTHONWEXECUTABLE;
 
11
 
 
12
int main(int argc, char **argv) {
 
13
        argv[0] = Python;
 
14
        execv(Python, argv);
 
15
        err(1, "execv: %s", Python);
 
16
        /* NOTREACHED */
 
17
}