Skip to content

Commit f29854c

Browse files
committed
fix path handling
1 parent 9bee023 commit f29854c

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

.evergreen/scripts/setup-dev-env.sh

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,10 @@
33
set -eux
44

55
HERE=$(dirname ${BASH_SOURCE:-$0})
6+
HERE="$( cd -- "$HERE" > /dev/null 2>&1 && pwd )"
67
ROOT=$(dirname "$(dirname $HERE)")
78
pushd $ROOT > /dev/null
89

9-
pwd
10-
11-
echo "ROOT=$ROOT"
12-
1310
# Source the env files to pick up common variables.
1411
if [ -f $HERE/env.sh ]; then
1512
. $HERE/env.sh
@@ -22,7 +19,6 @@ fi
2219
# Ensure dependencies are installed.
2320
bash $HERE/install-dependencies.sh
2421

25-
pwd
2622
# Set the location of the python bin dir.
2723
if [ "Windows_NT" = "${OS:-}" ]; then
2824
BIN_DIR=.venv/Scripts
@@ -32,9 +28,7 @@ fi
3228

3329
# Ensure there is a python venv.
3430
if [ ! -d $BIN_DIR ]; then
35-
ls
36-
ls .evergreen
37-
. .evergreen/utils.sh
31+
. $ROOT/.evergreen/utils.sh
3832

3933
if [ -z "${PYTHON_BINARY:-}" ]; then
4034
PYTHON_BINARY=$(find_python3)

0 commit comments

Comments
 (0)