Lines Matching full:executable
31 * SCRIPT_WRAPPER is used to choose one of the variants of an executable built
34 * looks for a script name related to the executable name and runs that script
174 wchar_t executable[MAX_PATH]; member
224 if (_wcsicmp(path, ip->executable) == 0) { in find_existing_python()
302 data_size = sizeof(ip->executable) - 1; in _locate_pythons_for_key()
306 (LPBYTE)ip->executable, &data_size); in _locate_pythons_for_key()
312 data_size = sizeof(ip->executable) - 1; in _locate_pythons_for_key()
314 (LPBYTE)ip->executable, &data_size); in _locate_pythons_for_key()
328 if (ip->executable[data_size - 1] == L'\\') in _locate_pythons_for_key()
330 /* ip->executable is data_size long */ in _locate_pythons_for_key()
334 _snwprintf_s(&ip->executable[data_size], in _locate_pythons_for_key()
339 attrs = GetFileAttributesW(ip->executable); in _locate_pythons_for_key()
343 ip->executable, message); in _locate_pythons_for_key()
347 ip->executable); in _locate_pythons_for_key()
349 else if (find_existing_python(ip->executable)) { in _locate_pythons_for_key()
351 ip->executable); in _locate_pythons_for_key()
354 /* check the executable type. */ in _locate_pythons_for_key()
358 ok = GetBinaryTypeW(ip->executable, &attrs); in _locate_pythons_for_key()
361 ip->executable); in _locate_pythons_for_key()
375 ip->executable, attrs); in _locate_pythons_for_key()
379 /* display just the executable name. This is in _locate_pythons_for_key()
381 const wchar_t *name = wcsrchr(ip->executable, L'\\'); in _locate_pythons_for_key()
386 if (wcschr(ip->executable, L' ') != NULL) { in _locate_pythons_for_key()
390 wcscpy_s(ip->exe_display, MAX_PATH, ip->executable); in _locate_pythons_for_key()
392 n = wcslen(ip->executable); in _locate_pythons_for_key()
393 memmove(&ip->executable[1], in _locate_pythons_for_key()
394 ip->executable, n * sizeof(wchar_t)); in _locate_pythons_for_key()
395 ip->executable[0] = L'\"'; in _locate_pythons_for_key()
396 ip->executable[n + 1] = L'\"'; in _locate_pythons_for_key()
397 ip->executable[n + 2] = L'\0'; in _locate_pythons_for_key()
400 is a %dbit executable\n", in _locate_pythons_for_key()
401 ip->executable, ip->bits); in _locate_pythons_for_key()
481 /* Check for a python executable in the venv */ in locate_venv_python()
482 debug(L"Checking for Python executable in virtual env '%ls'\n", virtual_env); in locate_venv_python()
487 debug(L"Python executable %ls missing from virtual env\n", venv_python); in locate_venv_python()
492 wcscpy_s(ip->executable, MAX_PATH, venv_python); in locate_venv_python()
642 debug(L"'%ls'\n", result->executable); in locate_python()
669 result->version, result->executable); in locate_python()
679 * Check for a script located alongside the executable
826 invoke_child(wchar_t * executable, wchar_t * suffix, wchar_t * cmdline) in invoke_child() argument
834 run_child(executable); in invoke_child()
838 child_command_size = wcslen(executable) + wcslen(cmdline) + 2; in invoke_child()
842 child_command_size = wcslen(executable) + wcslen(suffix) + in invoke_child()
852 executable, cmdline); in invoke_child()
856 executable, suffix, cmdline); in invoke_child()
1332 invoke_child(ip->executable, NULL, cmdline); in maybe_handle_shebang()
1451 debug(L"searching PATH for python executable\n"); in maybe_handle_shebang()
1476 invoke_child(ip->executable, suffix, cmdline); in maybe_handle_shebang()
1619 fwprintf(stdout, fmt, version, ip->executable); in show_python_list()
1721 wchar_t * executable; in process() local
1757 debug(L"launcher executable: Windows\n"); in process()
1759 debug(L"launcher executable: Console\n"); in process()
1866 * override sys.executable and locate the original prefix path. in process()
1878 * the same directory as the launcher executable. in process()
1930 executable = (wchar_t *)malloc(cch * sizeof(wchar_t)); in process()
1931 if (executable == NULL) { in process()
1935 executable[0] = L'"'; in process()
1936 cch_actual = MultiByteToWideChar(CP_UTF8, 0, start, len, &executable[1], cch - 1); in process()
1942 executable[cch_actual] = L'\0'; in process()
1943 if (executable[cch_actual - 1] != L'\\') { in process()
1944 executable[cch_actual++] = L'\\'; in process()
1945 executable[cch_actual] = L'\0'; in process()
1947 if (wcscat_s(&executable[1], cch - 1, PYTHON_EXECUTABLE)) { in process()
1948 error(RC_BAD_VENV_CFG, L"Cannot create executable path from '%ls'", in process()
1952 if (GetFileAttributesW(&executable[1]) == INVALID_FILE_ATTRIBUTES) { in process()
1953 error(RC_NO_PYTHON, L"No Python at '%ls'", executable); in process()
1956 wcscat_s(executable, cch, L"\""); in process()
1988 executable = ip->executable; in process()
2012 executable = NULL; /* Info call only */ in process()
2019 executable = ip->executable; in process()
2022 if (executable != NULL) in process()
2023 invoke_child(executable, NULL, command); in process()