MCPcopy Index your code
hub / github.com/microsoft/playwright-python / get_driver_env

Function get_driver_env

playwright/_impl/_driver.py:36–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34
35
36def get_driver_env() -> dict:
37 env = os.environ.copy()
38 env["PW_LANG_NAME"] = "python"
39 env["PW_LANG_NAME_VERSION"] = f"{sys.version_info.major}.{sys.version_info.minor}"
40 env["PW_CLI_DISPLAY_VERSION"] = version
41 return env

Callers 2

mainFunction · 0.90
connectMethod · 0.90

Calls 1

copyMethod · 0.80

Tested by

no test coverage detected