Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
36
def
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
main
Function · 0.90
connect
Method · 0.90
Calls
1
copy
Method · 0.80
Tested by
no test coverage detected