Skip to content

Commit

Permalink
Make python executable variable ament_package specific (#134)
Browse files Browse the repository at this point in the history
Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
  • Loading branch information
sloretz authored Aug 12, 2021
1 parent d695ec8 commit b3669d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ament_package/template/prefix_level/local_setup.bat.in
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ goto:eof
set "_ament_python_executable=%AMENT_PYTHON_EXECUTABLE%"
) else (
:: use the Python executable known at configure time
set "_ament_python_executable=@PYTHON_EXECUTABLE@"
set "_ament_python_executable=@ament_package_PYTHON_EXECUTABLE@"
:: if it doesn't exist try a fall back
if not exist "!_ament_python_executable!" (
python --version > NUL 2> NUL
Expand Down
2 changes: 1 addition & 1 deletion ament_package/template/prefix_level/local_setup.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ fi
: ${AMENT_SHELL:=sh}

# use the Python executable known at configure time
_ament_python_executable="@PYTHON_EXECUTABLE@"
_ament_python_executable="@ament_package_PYTHON_EXECUTABLE@"
# allow overriding it with a custom location
if [ -n "$AMENT_PYTHON_EXECUTABLE" ]; then
_ament_python_executable="$AMENT_PYTHON_EXECUTABLE"
Expand Down

0 comments on commit b3669d8

Please sign in to comment.