| commit | 1889a879a28f00ff7f1580f24e35e52eb229c0b3 | [log] [tgz] |
|---|---|---|
| author | Paul Oberosler <paul.oberosler@raspberrypi.com> | Mon Oct 06 16:22:11 2025 +0100 |
| committer | Anas Nashif <anas.nashif@intel.com> | Mon Oct 20 11:35:06 2025 -0400 |
| tree | 46ad24ddfa2de286d984b5e4a9bea17c50b8f14c | |
| parent | 4f2531cf807650a986ae78a952a2a71c6a96d6ed [diff] |
scripts: west_commands: fix ZEPHYR_BASE env check
detect_version() used os.environ["ZEPHYR_BASE"],
which raises a KeyError when the variable is
absent, preventing the fallback path from running.
Switch to os.environ.get("ZEPHYR_BASE") and use
Path(__file__).resolve() for the fallback so the
path is absolute/canonical.
Signed-off-by: Paul Oberosler <paul.oberosler@raspberrypi.com>