MCPcopy Create free account
hub / github.com/unslothai/unsloth / _windows_hidden_subprocess_kwargs

Function _windows_hidden_subprocess_kwargs

studio/install_python_stack.py:1416–1435  ·  view source on GitHub ↗

Return Windows-only subprocess kwargs that suppress console windows.

()

Source from the content-addressed store, hash-verified

1414
1415
1416def _windows_hidden_subprocess_kwargs() -> dict[str, object]:
1417 """Return Windows-only subprocess kwargs that suppress console windows."""
1418 if not IS_WINDOWS:
1419 return {}
1420
1421 kwargs: dict[str, object] = {}
1422 create_no_window = getattr(subprocess, "CREATE_NO_WINDOW", 0)
1423 if create_no_window:
1424 kwargs["creationflags"] = create_no_window
1425
1426 startupinfo_factory = getattr(subprocess, "STARTUPINFO", None)
1427 startf_use_showwindow = getattr(subprocess, "STARTF_USESHOWWINDOW", 0)
1428 sw_hide = getattr(subprocess, "SW_HIDE", 0)
1429 if startupinfo_factory is not None and startf_use_showwindow:
1430 startupinfo = startupinfo_factory()
1431 startupinfo.dwFlags |= startf_use_showwindow
1432 startupinfo.wShowWindow = sw_hide
1433 kwargs["startupinfo"] = startupinfo
1434
1435 return kwargs
1436
1437
1438def _infer_no_torch() -> bool:

Callers 15

runFunction · 0.70
_bootstrap_uvFunction · 0.70
pip_installFunction · 0.70
patch_package_fileFunction · 0.70
install_python_stackFunction · 0.70
_probe_autoconfigFunction · 0.50
_install_to_dirFunction · 0.50
get_physical_gpu_countFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…