]> granicus.if.org Git - python/commitdiff
Added an attribute runtimemodel, which is either "ppc" or "carbon" and is the runtime...
authorJack Jansen <jack.jansen@cwi.nl>
Tue, 23 Jan 2001 22:38:23 +0000 (22:38 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Tue, 23 Jan 2001 22:38:23 +0000 (22:38 +0000)
Mac/Modules/macosmodule.c

index b3dec5400d18097457e471238c6d6cc62faf1605..6fe0bd0904415e5420f0cefc95c63d3ec47785c7 100644 (file)
@@ -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;
 }