MCPcopy Create free account
hub / github.com/microsoft/Webwright / _resolve_user_data_dir

Function _resolve_user_data_dir

src/webwright/environments/local_browser.py:115–119  ·  view source on GitHub ↗
(configured_dir: Path, *, explicit: bool)

Source from the content-addressed store, hash-verified

113
114
115def _resolve_user_data_dir(configured_dir: Path, *, explicit: bool) -> Path:
116 if explicit:
117 return configured_dir
118 env_dir = os.environ.get("LOCAL_BROWSER_USER_DATA_DIR") or os.environ.get("BROWSER_USER_DATA_DIR")
119 return Path(env_dir).expanduser() if env_dir else _DEFAULT_LOCAL_CDP_USER_DATA_DIR.expanduser()
120
121
122def _find_chromium_executable(explicit_path: str = "") -> str:

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected