diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2001-01-23 22:38:23 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2001-01-23 22:38:23 (GMT) |
commit | 193509b32085eaffd0801cd89354c97f48cb74a1 (patch) | |
tree | 1d8e784ff67e0cd2625577e0bc1d09c993fa3fe1 /Mac/Modules | |
parent | c3fc51f61baef0bd00f9cb9b3c8dbead6ab8dc85 (diff) | |
download | cpython-193509b32085eaffd0801cd89354c97f48cb74a1.zip cpython-193509b32085eaffd0801cd89354c97f48cb74a1.tar.gz cpython-193509b32085eaffd0801cd89354c97f48cb74a1.tar.bz2 |
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.
Diffstat (limited to 'Mac/Modules')
-rw-r--r-- | Mac/Modules/macosmodule.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Mac/Modules/macosmodule.c b/Mac/Modules/macosmodule.c index b3dec54..6fe0bd0 100644 --- a/Mac/Modules/macosmodule.c +++ b/Mac/Modules/macosmodule.c @@ -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; } |