/external/python/cpython2/Modules/ |
D | getpath.c | 246 search_for_prefix(char *argv0_path, char *home) in search_for_prefix() argument 264 strcpy(prefix, argv0_path); in search_for_prefix() 269 strcpy(prefix, argv0_path); in search_for_prefix() 278 copy_absolute(prefix, argv0_path); in search_for_prefix() 305 search_for_exec_prefix(char *argv0_path, char *home) in search_for_exec_prefix() argument 325 strcpy(exec_prefix, argv0_path); in search_for_exec_prefix() 337 strcpy(exec_prefix, argv0_path); in search_for_exec_prefix() 344 copy_absolute(exec_prefix, argv0_path); in search_for_exec_prefix() 379 char argv0_path[MAXPATHLEN+1]; in calculate_path() local 447 strncpy(argv0_path, progpath, MAXPATHLEN); in calculate_path() [all …]
|
/external/python/cpython2/PC/os2emx/ |
D | getpathp.c | 185 search_for_prefix(char *argv0_path, char *landmark) in search_for_prefix() argument 188 strcpy(prefix, argv0_path); in search_for_prefix() 261 char argv0_path[MAXPATHLEN+1]; in calculate_path() local 271 strcpy(argv0_path, progpath); in calculate_path() 272 reduce(argv0_path); in calculate_path() 274 if (search_for_prefix(argv0_path, LANDMARK)) in calculate_path() 320 bufsz += strlen(argv0_path) + 1; in calculate_path() 379 if (argv0_path) { in calculate_path() 381 strcpy(buf, argv0_path); in calculate_path()
|
/external/python/cpython3/PC/ |
D | getpathp.c | 294 search_for_prefix(wchar_t *prefix, const wchar_t *argv0_path, const wchar_t *landmark) in search_for_prefix() argument 297 wcscpy_s(prefix, MAXPATHLEN + 1, argv0_path); in search_for_prefix() 708 wchar_t *argv0_path, size_t argv0_path_len) in calculate_pyvenv_file() argument 714 wcscpy_s(filename, MAXPATHLEN+1, argv0_path); in calculate_pyvenv_file() 741 wcscpy_s(argv0_path, argv0_path_len, home); in calculate_pyvenv_file() 751 const wchar_t *argv0_path, in calculate_home_prefix() argument 761 else if (search_for_prefix(prefix, argv0_path, LANDMARK)) { in calculate_home_prefix() 777 const wchar_t *argv0_path, in calculate_module_search_path() argument 822 bufsz += wcslen(argv0_path) + 1; in calculate_module_search_path() 907 if (argv0_path) { in calculate_module_search_path() [all …]
|
/external/python/cpython2/PC/os2vacpp/ |
D | getpathp.c | 117 search_for_prefix(char *argv0_path, char *landmark) in search_for_prefix() argument 122 strcpy(prefix, argv0_path); in search_for_prefix() 299 char argv0_path[MAXPATHLEN+1]; in calculate_path() local 319 strcpy(argv0_path, progpath); in calculate_path() 320 reduce(argv0_path); in calculate_path() 322 if (search_for_prefix(argv0_path, LANDMARK)) in calculate_path() 369 bufsz += strlen(argv0_path) + 1; in calculate_path() 437 if (argv0_path) { in calculate_path() 439 strcpy(buf, argv0_path); in calculate_path()
|
/external/python/cpython3/Modules/ |
D | getpath.c | 143 wchar_t *argv0_path; member 477 wchar_t *path = joinpath2(calculate->argv0_path, BUILD_LANDMARK); in search_for_prefix() 491 if (safe_wcscpy(prefix, calculate->argv0_path, prefix_len) < 0) { in search_for_prefix() 518 status = copy_absolute(prefix, calculate->argv0_path, prefix_len); in search_for_prefix() 646 calculate_pybuilddir(const wchar_t *argv0_path, in calculate_pybuilddir() argument 657 wchar_t *filename = joinpath2(argv0_path, L"pybuilddir.txt"); in calculate_pybuilddir() 681 if (safe_wcscpy(exec_prefix, argv0_path, exec_prefix_len) < 0) { in calculate_pybuilddir() 734 status = calculate_pybuilddir(calculate->argv0_path, in search_for_exec_prefix() 744 status = copy_absolute(exec_prefix, calculate->argv0_path, exec_prefix_len); in search_for_exec_prefix() 1154 PyMem_RawFree(calculate->argv0_path); in calculate_argv0_path_framework() [all …]
|
/external/python/cpython2/PC/ |
D | getpathp.c | 191 search_for_prefix(char *argv0_path, char *landmark) in search_for_prefix() argument 194 strcpy(prefix, argv0_path); in search_for_prefix() 465 char argv0_path[MAXPATHLEN+1]; in calculate_path() local 481 strcpy(argv0_path, progpath); in calculate_path() 482 reduce(argv0_path); in calculate_path() 484 if (search_for_prefix(argv0_path, LANDMARK)) in calculate_path() 550 bufsz += strlen(argv0_path) + 1; in calculate_path() 641 if (argv0_path) { in calculate_path() 643 strcpy(buf, argv0_path); in calculate_path()
|