Lines Matching refs:progpath
109 static char progpath[MAXPATHLEN+1]; variable
402 strncpy(progpath, prog, MAXPATHLEN); in calculate_path()
414 else if(0 == _NSGetExecutablePath(progpath, &nsexeclength) && progpath[0] == SEP) in calculate_path()
425 strncpy(progpath, path, len); in calculate_path()
426 *(progpath + len) = '\0'; in calculate_path()
429 strncpy(progpath, path, MAXPATHLEN); in calculate_path()
431 joinpath(progpath, prog); in calculate_path()
432 if (isxfile(progpath)) in calculate_path()
436 progpath[0] = '\0'; in calculate_path()
443 progpath[0] = '\0'; in calculate_path()
444 if (progpath[0] != SEP && progpath[0] != '\0') in calculate_path()
445 absolutize(progpath); in calculate_path()
446 strncpy(argv0_path, progpath, MAXPATHLEN); in calculate_path()
474 strncpy(argv0_path, progpath, MAXPATHLEN); in calculate_path()
486 int linklen = readlink(progpath, tmpbuffer, MAXPATHLEN); in calculate_path()
698 return progpath; in Py_GetProgramFullPath()