Skip to content

Commit 5d34481

Browse files
author
Vladimir Kotal
committed
check the Python path and fail early
1 parent 61c77a8 commit 5d34481

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

dev/main

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,13 @@ if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then
3030
export PATH=${PATH}:/c/Program\ Files\ \(x86\)/Subversion/bin
3131
export PATH=${PATH}:${JAVA_HOME}
3232

33+
PYTHON_PATH="/c/Python39"
34+
if [[ ! -d $PYTHON_PATH ]]; then
35+
echo "Not a directory: $PYTHON_PATH"
36+
exit 1
37+
fi
3338
# needs to be before the default Python 2
34-
export PATH=/c/Python39:${PATH}
39+
export PATH=${PYTHON_PATH}:${PATH}
3540

3641
extra_args="$extra_args -Dorg.opengrok.indexer.analysis.Ctags=c:\\ProgramData\\chocolatey\\lib\\universal-ctags\\tools\\ctags.exe"
3742
fi

0 commit comments

Comments
 (0)