Lines Matching refs:executable
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()
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, attrs); 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()
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()
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()
401 ip->executable, ip->bits); in _locate_pythons_for_key()
482 wcscpy_s(ip->executable, MAX_PATH, venv_python); in locate_venv_python()
623 debug(L"'%ls'\n", result->executable); in locate_python()
650 result->version, result->executable); in locate_python()
807 invoke_child(wchar_t * executable, wchar_t * suffix, wchar_t * cmdline) in invoke_child() argument
815 run_child(executable); in invoke_child()
819 child_command_size = wcslen(executable) + wcslen(cmdline) + 2; in invoke_child()
823 child_command_size = wcslen(executable) + wcslen(suffix) + in invoke_child()
833 executable, cmdline); in invoke_child()
837 executable, suffix, cmdline); in invoke_child()
1309 invoke_child(ip->executable, NULL, cmdline); in maybe_handle_shebang()
1453 invoke_child(ip->executable, suffix, cmdline); in maybe_handle_shebang()
1596 fwprintf(stdout, fmt, version, ip->executable); in show_python_list()
1698 wchar_t * executable; in process() local
1907 executable = (wchar_t *)malloc(cch * sizeof(wchar_t)); in process()
1908 if (executable == NULL) { in process()
1911 cch_actual = MultiByteToWideChar(CP_UTF8, 0, start, len, executable, cch); in process()
1916 if (executable[cch_actual - 1] != L'\\') { in process()
1917 executable[cch_actual++] = L'\\'; in process()
1918 executable[cch_actual] = L'\0'; in process()
1920 if (wcscat_s(executable, cch, PYTHON_EXECUTABLE)) { in process()
1924 if (GetFileAttributesW(executable) == INVALID_FILE_ATTRIBUTES) { in process()
1925 error(RC_NO_PYTHON, L"No Python at '%ls'", executable); in process()
1957 executable = ip->executable; in process()
1981 executable = NULL; /* Info call only */ in process()
1988 executable = ip->executable; in process()
1991 if (executable != NULL) in process()
1992 invoke_child(executable, NULL, command); in process()