MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / _module_name

Function _module_name

py/selenium-manager/selenium_manager/__init__.py:50–61  ·  view source on GitHub ↗
(sys_platform: str, machine: str)

Source from the content-addressed store, hash-verified

48
49
50def _module_name(sys_platform: str, machine: str) -> str:
51 if sys_platform == "linux":
52 module_name = _LINUX_MODULES.get(machine)
53 if module_name is None:
54 supported = ", ".join(_LINUX_MODULES)
55 raise RuntimeError(f"Unsupported Linux architecture: {machine}. Supported: {supported}")
56 return module_name
57
58 module_name = _PLATFORM_MODULES.get(sys_platform)
59 if module_name is None:
60 raise RuntimeError(f"Unsupported platform: {sys_platform}. Supported: linux, darwin, win32")
61 return module_name
62
63
64def binary_path() -> str:

Calls 1

getMethod · 0.65