comparison Mac/Python/macgetpath.c @ 21423:274aa91b417c legacy-trunk

Use getcwd(), not silly old getwd().
author Jack Jansen <jack.jansen@cwi.nl>
date Fri, 14 Dec 2001 22:57:34 +0000
parents d8dd75e3b304
children 5f2dcdd09329
comparison
equal deleted inserted replaced
21422:55921255ec93 21423:274aa91b417c
294 strcat(name, ":"); 294 strcat(name, ":");
295 } else { 295 } else {
296 /* If all fails, we return the current directory */ 296 /* If all fails, we return the current directory */
297 printf("Python home dir exists but I cannot find the pathname!!\n"); 297 printf("Python home dir exists but I cannot find the pathname!!\n");
298 name[0] = 0; 298 name[0] = 0;
299 (void)getwd(name); 299 (void)getcwd(name, sizeof(name));
300 } 300 }
301 diditbefore = 1; 301 diditbefore = 1;
302 return name; 302 return name;
303 } 303 }
304 304