Lines Matching full:executable
25 # isxfile(path) -- path exists and is an executable file
59 # Otherwise, leave None and it will be calculated from executable
61 # If None, will be calculated from real_executable or executable
92 # Before any searches are done, the location of the executable is
99 # named executable and use that. If the executable was not found on
104 # __PYVENV_LAUNCHER__ variable may override the executable (on macOS,
107 # specify the executable path. They are not intended for users.
109 # Next, the executable location is examined to see if it is a symbolic
116 # property to override the executable dir used later for prefix searches.
120 # runtime library (if any) or the actual executable (not the symlink),
221 executable = config.get('executable') variable
257 # CALCULATE executable
261 # When Py_SetPath has been called, executable defaults to
262 # the real executable path.
263 if not executable:
264 executable = real_executable variable
266 if not executable and SEP in program_name:
268 executable = abspath(program_name) variable
270 if not executable:
273 executable = real_executable variable
275 # QUIRK: On macOS we may know the real executable path, but
279 # executable path was provided in the config.
280 real_executable = executable
282 if not executable and program_name and ENV_PATH:
289 executable = p variable
292 if not executable:
293 executable = '' variable
294 # When we cannot calculate the executable, subsequent searches
304 # sys.executable and when searching for venvs. However, we should
309 # a stub executable that execs the real interpreter in an
314 base_executable = executable
319 executable = ENV_PYTHONEXECUTABLE or ENV___PYVENV_LAUNCHER__ variable
320 executable_dir = dirname(executable)
349 venv_prefix2 = executable_dir or dirname(executable)
352 # Read pyvenv.cfg from one level above executable
355 # Try the same directory as executable
368 # more accurate than assuming the executable in 'home'.
370 base_executable = realpath(executable)
371 if base_executable == executable:
377 base_executable = joinpath(executable_dir, basename(executable))
384 base_exe = basename(executable)
393 # context of the original executable name
407 base_executable = executable or real_executable or ''
416 # Otherwise users who specify a fake executable may get spurious warnings.
429 # If we do not have the executable's directory, we can calculate it.
434 # If we do not have the real executable's directory, we calculate it.
453 # 2. Check adjacent to the original executable
454 # 3. Check adjacent to our actual executable
457 for p in [library, executable, real_executable]:
501 # QUIRK: Windows builds need platstdlib_dir to be the executable
582 # Detect prefix by searching from our executable location for the stdlib_dir
598 # Detect exec_prefix by searching from executable for the platstdlib_dir
603 # (that is, prefix) rather than the executable (that is, executable_dir)
724 # QUIRK: the executable directory is on sys.path
779 config['executable'] = executable