1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-09 09:34:57 +09:00

Meta: Avoid double-access of LADYBIRD_SOURCE_DIR environment variable

The `ensure_ladybird_source_dir` function returns the source directory.
Let's just use it. This silences a pyright warning.
This commit is contained in:
Timothy Flynn 2025-05-21 16:49:07 -04:00 committed by Andrew Kaster
parent 23a95cfb9a
commit 6a1b3f740c
Notes: github-actions[bot] 2025-05-21 22:56:55 +00:00

View file

@ -288,9 +288,8 @@ def configure_build_env(preset: str, cc: str, cxx: str) -> tuple[Path, Path, lis
f"-DCMAKE_CXX_COMPILER={cxx}",
]
)
ensure_ladybird_source_dir()
lb_source_dir = Path(os.environ.get("LADYBIRD_SOURCE_DIR"))
lb_source_dir = ensure_ladybird_source_dir()
build_root_dir = lb_source_dir / "Build"
known_presets = {