Function
_resolve_user_data_dir
(configured_dir: Path, *, explicit: bool)
Source from the content-addressed store, hash-verified
| 113 | |
| 114 | |
| 115 | def _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 | |
| 122 | def _find_chromium_executable(explicit_path: str = "") -> str: |
Tested by
no test coverage detected