blob: 752156865e3a6a240b790c5266a62f36279bb0da [file] [log] [blame]
Carles Cufi980c0cf2018-02-12 14:33:59 +01001@echo off
2set ZEPHYR_BASE=%~dp0
Maureen Helmc33087d2018-03-23 16:12:22 -05003
4if exist "%userprofile%\zephyrrc.cmd" (
5 call "%userprofile%\zephyrrc.cmd"
6)
Marti Bolivarb6af8eb2018-05-09 11:08:38 -04007
Marti Bolivar55b462c2018-09-23 07:04:35 -06008rem Zephyr meta-tool (west) launcher alias, which keeps monorepo
9rem Zephyr installations' 'make flash' etc. working. See
10rem https://www.python.org/dev/peps/pep-0486/ for details on the
11rem virtualenv-related pieces. (We need to implement this manually
12rem because Zephyr's minimum supported Python version is 3.4.)
13if defined VIRTUAL_ENV (
Marti Bolivar9e3edbb2018-09-25 15:08:16 -060014 doskey west=python %ZEPHYR_BASE%\scripts\west $*
Marti Bolivar55b462c2018-09-23 07:04:35 -060015) else (
Marti Bolivar9e3edbb2018-09-25 15:08:16 -060016 doskey west=py -3 %ZEPHYR_BASE%\scripts\west $*
Marti Bolivar55b462c2018-09-23 07:04:35 -060017)