From: Jack Jansen Date: Sat, 9 Nov 1996 18:48:06 +0000 (+0000) Subject: Added PyMac_GetFullPath(), PyMac_ApplicationPath and PyMac_ApplicationFSSpec X-Git-Tag: v1.5a1~951 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6c11f7444c79f16fff47dd56c5e1c8e9ec7f0624;p=python Added PyMac_GetFullPath(), PyMac_ApplicationPath and PyMac_ApplicationFSSpec --- diff --git a/Mac/Include/macglue.h b/Mac/Include/macglue.h index af1e21ab61..907beb154c 100644 --- a/Mac/Include/macglue.h +++ b/Mac/Include/macglue.h @@ -52,6 +52,11 @@ extern void PyMac_SetGUSISpin(void); /* Install our private GUSI spin routine */ #endif extern short PyMac_AppRefNum; /* RefNum of application rsrcfork (from macmain.c) */ +extern FSSpec PyMac_ApplicationFSSpec; /* Application location (from macargv.c) */ +extern char PyMac_ApplicationPath[]; /* Application location (from macargv.c) */ +extern OSErr PyMac_init_application_location Py_PROTO((void)); /* Init the above */ +extern OSErr PyMac_GetFullPath Py_PROTO((FSSpec *, char *)); /* convert fsspec->path (macargv.c) */ +extern int PyMac_GetArgv Py_PROTO((char ***, int)); /* Get argc, argv (from macargv.c) */ extern PyObject *PyMac_OSErrException; /* Exception for OSErr */ PyObject *PyMac_GetOSErrException(void); /* Initialize & return it */