summaryrefslogtreecommitdiffstats
path: root/Mac/Modules/macmodule.c
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1996-03-06 16:21:34 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>1996-03-06 16:21:34 (GMT)
commit378815ca860871b4cfeed65ce31e0099fdb6c92c (patch)
tree05aca10edfea68369e6ac22d8d926019b0389d41 /Mac/Modules/macmodule.c
parent7275561d34c6a8565caf512ee3b647f200ca3155 (diff)
downloadcpython-378815ca860871b4cfeed65ce31e0099fdb6c92c.zip
cpython-378815ca860871b4cfeed65ce31e0099fdb6c92c.tar.gz
cpython-378815ca860871b4cfeed65ce31e0099fdb6c92c.tar.bz2
Replaced previous gusi-chdir() fix by a call to PyMac_FixGUSIcd()
after each chdir call.
Diffstat (limited to 'Mac/Modules/macmodule.c')
-rw-r--r--Mac/Modules/macmodule.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/Mac/Modules/macmodule.c b/Mac/Modules/macmodule.c
index 4190db0..75716db 100644
--- a/Mac/Modules/macmodule.c
+++ b/Mac/Modules/macmodule.c
@@ -176,7 +176,17 @@ mac_chdir(self, args)
object *self;
object *args;
{
+#ifdef USE_GUSI
+ object *rv;
+
+ /* Change MacOS's idea of wd too */
+ rv = mac_1str(args, chdir);
+ PyMac_FixGUSIcd();
+ return rv;
+#else
return mac_1str(args, chdir);
+#endif
+
}
static object *