MCPcopy Index your code
hub / github.com/python/cpython / set_executable

Function set_executable

Lib/multiprocessing/spawn.py:36–43  ·  view source on GitHub ↗
(exe)

Source from the content-addressed store, hash-verified

34 WINSERVICE = sys.executable and sys.executable.lower().endswith("pythonservice.exe")
35
36def set_executable(exe):
37 global _python_exe
38 if exe is None:
39 _python_exe = exe
40 elif sys.platform == 'win32':
41 _python_exe = os.fsdecode(exe)
42 else:
43 _python_exe = os.fsencode(exe)
44
45def get_executable():
46 return _python_exe

Callers 2

set_executableMethod · 0.85
spawn.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…