summaryrefslogtreecommitdiffstats
path: root/ui-macos/bits/runpython.c
blob: 2d982f54219447d60b5e678a6266f0ae3128819a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/*
 * This rather pointless program acts like the python interpreter, except
 * it's intended to sit inside a MacOS .app package, so that its argv[0]
 * will point inside the package.
 *
 * NSApplicationMain() looks for Info.plist using the path in argv[0], which
 * goes wrong if your interpreter is /usr/bin/python.
 */
#include <Python.h>

int main(int argc, char **argv)
{
    return Py_Main(argc, argv);
}