1from types import ModuleType
2from typing import Any, Dict, List, Mapping, Optional, Sequence
3
4WINEXE: bool
5WINSERVICE: bool
6
7def set_executable(exe: str) -> None: ...
8def get_executable() -> str: ...
9def is_forking(argv: Sequence[str]) -> bool: ...
10def freeze_support() -> None: ...
11def get_command_line(**kwds: Any) -> List[str]: ...
12def spawn_main(pipe_handle: int, parent_pid: Optional[int] = ..., tracker_fd: Optional[int] = ...) -> None: ...
13
14# undocumented
15def _main(fd: int) -> Any: ...
16def get_preparation_data(name: str) -> Dict[str, Any]: ...
17
18old_main_modules: List[ModuleType]
19
20def prepare(data: Mapping[str, Any]) -> None: ...
21def import_main_path(main_path: str) -> None: ...
22