Skip to content

Commit 0470ccb

Browse files
authored
Merge pull request #1818 from mqcmd196/fix-python3-shebang
[jsk_tools][ros_console.py] fix ros_console.py shebang issue
2 parents 4259974 + d14819f commit 0470ccb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

jsk_tools/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@ foreach(exec ${BIN_EXECUTABLES})
2222
COMMAND cmake -E copy ${PROJECT_SOURCE_DIR}/bin/${exec} ${CATKIN_DEVEL_PREFIX}/${CATKIN_GLOBAL_BIN_DESTINATION}/
2323
DEPENDS ${PROJECT_SOURCE_DIR}/bin/${exec})
2424
add_custom_target(install_${exec} ALL DEPENDS ${CATKIN_DEVEL_PREFIX}/${CATKIN_GLOBAL_BIN_DESTINATION}/${exec})
25-
install(PROGRAMS bin/${exec} DESTINATION ${CATKIN_GLOBAL_BIN_DESTINATION})
25+
if("${exec}" MATCHES "\\.py$")
26+
catkin_install_python(PROGRAMS bin/${exec} DESTINATION ${CATKIN_GLOBAL_BIN_DESTINATION})
27+
else()
28+
install(PROGRAMS bin/${exec} DESTINATION ${CATKIN_GLOBAL_BIN_DESTINATION})
29+
endif()
2630
endforeach(exec)
2731

2832
if (CATKIN_ENABLE_TESTING)

0 commit comments

Comments
 (0)