MCPcopy
hub / github.com/pex-tool/pex / launch_python_daemon

Function launch_python_daemon

pex/subprocess.py:38–50  ·  view source on GitHub ↗
(
    args,  # type: List[str]
    **kwargs  # type: Any
)

Source from the content-addressed store, hash-verified

36
37
38def launch_python_daemon(
39 args, # type: List[str]
40 **kwargs # type: Any
41):
42 # type: (...) -> subprocess.Popen
43 if WINDOWS:
44 python, _ = os.path.splitext(os.path.basename(args[0]))
45 if python == "python":
46 pythonw = os.path.join(os.path.dirname(args[0]), "pythonw.exe")
47 if os.path.exists(pythonw):
48 args[0] = pythonw
49 kwargs.update(subprocess_daemon_kwargs())
50 return subprocess.Popen(args=args, **kwargs)

Callers 2

launchMethod · 0.90
launchFunction · 0.90

Calls 3

subprocess_daemon_kwargsFunction · 0.85
joinMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected