9e3edbbd80
The $(readlink -f) call in scripts/west doesn't work on macOS. Let's just ensure compatibility on all the platforms by moving scripts/west-launcher.py to scripts/west, making it executable on macOS and Linux, and launching it from the Windows doskey macro. Signed-off-by: Marti Bolivar <marti@foundries.io>
18 lines
564 B
Batchfile
18 lines
564 B
Batchfile
@echo off
|
|
set ZEPHYR_BASE=%~dp0
|
|
|
|
if exist "%userprofile%\zephyrrc.cmd" (
|
|
call "%userprofile%\zephyrrc.cmd"
|
|
)
|
|
|
|
rem Zephyr meta-tool (west) launcher alias, which keeps monorepo
|
|
rem Zephyr installations' 'make flash' etc. working. See
|
|
rem https://www.python.org/dev/peps/pep-0486/ for details on the
|
|
rem virtualenv-related pieces. (We need to implement this manually
|
|
rem because Zephyr's minimum supported Python version is 3.4.)
|
|
if defined VIRTUAL_ENV (
|
|
doskey west=python %ZEPHYR_BASE%\scripts\west $*
|
|
) else (
|
|
doskey west=py -3 %ZEPHYR_BASE%\scripts\west $*
|
|
)
|