Simulator: launch simulator from any directory (#29910)

launch sim from any directory
This commit is contained in:
Justin Newberry 2023-09-13 18:47:39 -07:00 committed by GitHub
parent 0d3cc2ae04
commit a95c896b5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -12,5 +12,8 @@ if [[ "$CI" ]]; then
export BLOCK="${BLOCK},ui"
fi
SCRIPT_DIR=$(dirname "$0")
OPENPILOT_DIR=$SCRIPT_DIR/../../
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
cd ../../selfdrive/manager && exec ./manager.py
cd $OPENPILOT_DIR/selfdrive/manager && exec ./manager.py