Skip to content

Commit

Permalink
[build] Check python version is 2.7*, not just 2.*.
Browse files Browse the repository at this point in the history
  • Loading branch information
danpovey committed May 25, 2017
1 parent b5eac09 commit 0f5e16e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/extras/check_dependencies.sh
Expand Up @@ -84,7 +84,7 @@ fi

if which python >&/dev/null ; then
version=`python 2>&1 --version | awk '{print $2}' `
if [[ $version != "2."* ]] ; then
if [[ $version != "2.7"* ]] ; then
if which python2.7 >&/dev/null || which python2 >&/dev/null ; then
echo "$0: python 2.7 is not the default python. You should either make it"
echo "$0: default or create an bash alias for kaldi scripts to run correctly"
Expand Down

0 comments on commit 0f5e16e

Please sign in to comment.