mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
Added an attribute runtimemodel, which is either "ppc" or "carbon" and is the runtime model of the current interpreter. Will have to ad another value later for real MacOSX MachO, I guess.
This commit is contained in:
parent
c3fc51f61b
commit
193509b320
1 changed files with 9 additions and 0 deletions
|
|
@ -759,5 +759,14 @@ initMacOS()
|
|||
if (PyDict_SetItemString(d, "AppearanceCompliant",
|
||||
Py_BuildValue("i", PyMac_AppearanceCompliant)) != 0)
|
||||
return;
|
||||
#if TARGET_API_MAC_CARBON
|
||||
/* Will need a different name for MachO-carbon later (macho?) */
|
||||
#define PY_RUNTIMEMODEL "carbon"
|
||||
#else
|
||||
#define PY_RUNTIMEMODEL "ppc"
|
||||
#endif
|
||||
if (PyDict_SetItemString(d, "runtimemodel",
|
||||
Py_BuildValue("s", PY_RUNTIMEMODEL)) != 0)
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue