rosrun should also search in share / src for executable scripts

This commit is contained in:
Dirk Thomas 2012-12-24 22:04:49 +00:00
parent e3c6f8eade
commit 17ea6b1e51
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ esac
# basename also makes .//foo into foo
basename=`basename $2`
if [[ -n $CMAKE_PREFIX_PATH ]]; then
catkin_package_libexec_dir=`catkin_find --without-underlays --libexec $1 2> /dev/null`
catkin_package_libexec_dir=`catkin_find --without-underlays --libexec --share $1 2> /dev/null`
fi
pkgdir=`rospack find $1`
if [[ -z $catkin_package_libexec_dir && -z $pkgdir ]]; then