- Timestamp:
- Nov 9, 2017, 11:02:54 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/trunk/Modules/getpath.c
r391 r1251 170 170 171 171 172 #ifndef PYOS_OS2 172 173 static int 173 174 isxfile(char *filename) /* Is executable file */ … … 182 183 return 1; 183 184 } 185 #endif 184 186 185 187 … … 424 426 #endif 425 427 428 #ifdef PYOS_OS2 429 /* This will search for prog in PATH and leave progpath empty on failure */ 430 _path2(prog, ".exe", progpath, MAXPATHLEN); 431 #else 426 432 /* If there is no slash in the argv0 path, then we have to 427 433 * assume python is on the user's $PATH, since there's no … … 472 478 else 473 479 progpath[0] = '\0'; 480 #endif /* PYOS_OS2 */ 481 474 482 #ifndef ALTSEP 475 483 if (!IS_ABSPATH(progpath) && progpath[0] != '\0')
Note:
See TracChangeset
for help on using the changeset viewer.