Lines Matching refs:progpath
110 static char progpath[MAXPATHLEN+1]; variable
403 strncpy(progpath, prog, MAXPATHLEN); in calculate_path()
415 else if(0 == _NSGetExecutablePath(progpath, &nsexeclength) && progpath[0] == SEP) in calculate_path()
426 strncpy(progpath, path, len); in calculate_path()
427 *(progpath + len) = '\0'; in calculate_path()
430 strncpy(progpath, path, MAXPATHLEN); in calculate_path()
432 joinpath(progpath, prog); in calculate_path()
433 if (isxfile(progpath)) in calculate_path()
437 progpath[0] = '\0'; in calculate_path()
444 progpath[0] = '\0'; in calculate_path()
445 if (progpath[0] != SEP && progpath[0] != '\0') in calculate_path()
446 absolutize(progpath); in calculate_path()
447 strncpy(argv0_path, progpath, MAXPATHLEN); in calculate_path()
475 strncpy(argv0_path, progpath, MAXPATHLEN); in calculate_path()
487 int linklen = readlink(progpath, tmpbuffer, MAXPATHLEN); in calculate_path()
699 return progpath; in Py_GetProgramFullPath()