Skip to content

Commit b57a748

Browse files
tejlmandnordicjm
authored andcommitted
[nrf fromtree] scripts: adjust WEST_PYTHON to posix path
Adjust WEST_PYTHON to posix path to be consistent with other Python scripts which passes paths to the Zephyr CMake build system. Signed-off-by: Torsten Rasmussen <[email protected]> (cherry picked from commit c03e190)
1 parent 2fb6483 commit b57a748

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/west_commands/build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ def _run_cmake(self, board, origin, cmake_opts):
497497
# to Just Work:
498498
#
499499
# west build -- -DOVERLAY_CONFIG=relative-path.conf
500-
final_cmake_args = ['-DWEST_PYTHON={}'.format(sys.executable),
500+
final_cmake_args = ['-DWEST_PYTHON={}'.format(pathlib.Path(sys.executable).as_posix()),
501501
'-B{}'.format(self.build_dir),
502502
'-G{}'.format(config_get('generator',
503503
DEFAULT_CMAKE_GENERATOR))]

0 commit comments

Comments
 (0)