diff options
Diffstat (limited to 'ui-macos/bits/runpython.c')
-rw-r--r-- | ui-macos/bits/runpython.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/ui-macos/bits/runpython.c b/ui-macos/bits/runpython.c new file mode 100644 index 0000000..2d982f5 --- /dev/null +++ b/ui-macos/bits/runpython.c @@ -0,0 +1,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); +}
\ No newline at end of file |