(
args, # type: List[str]
**kwargs # type: Any
)
| 36 | |
| 37 | |
| 38 | def 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) |
no test coverage detected