File: setup.sh

package info (click to toggle)
ros-vcstool 0.3.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 556 kB
  • sloc: python: 3,432; sh: 22; makefile: 19; csh: 1
file content (13 lines) | stat: -rw-r--r-- 371 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
if [ "$BASH_SOURCE" ]; then
  BASEDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
else
  SCRIPT=$(readlink -f $0)
  BASEDIR=$(dirname $SCRIPT)
  if [ ! -f "$BASEDIR/setup.sh" ]; then
    echo "In non-bash shells the setup.sh file must be sourced from the same directory"
    return 1
  fi
fi

export PATH=$BASEDIR/scripts:$PATH
export PYTHONPATH=$BASEDIR:$PYTHONPATH