scrub old ROS bin dirs from PATH in setup.sh, #3832

This commit is contained in:
Brian Gerkey 2012-02-03 01:03:54 +00:00
parent e1b702bc14
commit 5216cfcd3a
2 changed files with 8 additions and 0 deletions

View File

@ -2,6 +2,10 @@
# Installed ROS env file
# This file was automatically generated.
#
# Scrub old ROS bin dirs, to avoid accidentally finding the wrong executables
PATH=`python -c "import os; print(os.pathsep.join([x for x in \"$PATH\".split(os.pathsep) if not any([d for d in ['cturtle', 'diamondback', 'electric', 'unstable', 'fuerte'] if d in x])]))"`
export ROS_ROOT=@CMAKE_INSTALL_PREFIX@/share/ros
export ROS_PACKAGE_PATH=@CMAKE_INSTALL_PREFIX@/share:@CMAKE_INSTALL_PREFIX@/stacks
if [ ! "$ROS_MASTER_URI" ] ; then

View File

@ -2,6 +2,10 @@
# Buildspace ROS env file.
# This file was automatically generated.
#
# Scrub old ROS bin dirs, to avoid accidentally finding the wrong executables
PATH=`python -c "import os; print(os.pathsep.join([x for x in \"$PATH\".split(os.pathsep) if not any([d for d in ['cturtle', 'diamondback', 'electric', 'unstable', 'fuerte'] if d in x])]))"`
export ROS_ROOT=@CMAKE_SOURCE_DIR@/ros
export ROS_TEST_RESULTS_DIR=@CMAKE_BINARY_DIR@/test_results
export ROS_PACKAGE_PATH=@CMAKE_SOURCE_DIR@