summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2002-08-02 14:11:24 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2002-08-02 14:11:24 (GMT)
commit21ed16acbe0a8870f6833b7976f8b7e79452d21c (patch)
tree3c2459f9d7dcbd73d633cbac0af301099da288d4 /Include
parent94416e55d35e121a908fec30115a091f707c99e9 (diff)
downloadcpython-21ed16acbe0a8870f6833b7976f8b7e79452d21c.zip
cpython-21ed16acbe0a8870f6833b7976f8b7e79452d21c.tar.gz
cpython-21ed16acbe0a8870f6833b7976f8b7e79452d21c.tar.bz2
Added one call to Py_Main(), for OSX framework builds only, that will get the
actual script to run in case we are running from an applet. If we are indeed running an applet we skip the normal option processing leaving it all to the applet code. This allows us to get use the normal python binary in the Python.app bundle, giving us all the normal command line options through PythonLauncher while still allowing Python.app to be used as the template for building applets. Consequently, pythonforbundle is gone, and Mac/Python/macmain.c isn't used on OSX anymore.
Diffstat (limited to 'Include')
-rw-r--r--Include/pymactoolbox.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/Include/pymactoolbox.h b/Include/pymactoolbox.h
index 5313d91..5e2bb34 100644
--- a/Include/pymactoolbox.h
+++ b/Include/pymactoolbox.h
@@ -34,7 +34,9 @@ char *PyMac_StrError(int); /* strerror with mac errors */
PyObject *PyErr_Mac(PyObject *, int); /* Exception with a mac error */
PyObject *PyMac_Error(OSErr); /* Uses PyMac_GetOSErrException */
extern OSErr PyMac_GetFullPathname(FSSpec *, char *, int); /* convert fsspec->path */
-
+#ifdef WITH_NEXT_FRAMEWORK
+extern char *PyMac_GetAppletScriptFile(void); /* Return applet script file or NULL */
+#endif
/*
** These conversion routines are defined in mactoolboxglue.c itself.
*/