1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-01 09:24:10 +01:00

redirect stderr to stdout for shell python --version

This commit is contained in:
James Duley 2014-08-19 11:50:03 +12:00
parent f4ddbe53eb
commit c2af28246f

View File

@ -597,7 +597,7 @@ ifeq ($(shell [ -d "$(PYTHON_DIR)" ] && $(ECHO) "exists"), exists)
else
# not installed, hope it's in the path...
# $(info $(EMPTY) WARNING $(call toprel, $(PYTHON_DIR)) not found, using system PATH)
ifeq ($(findstring Python 2,$(shell python --version)), Python 2)
ifeq ($(findstring Python 2,$(shell python --version 2>&1)), Python 2)
export PYTHON := python
else
export PYTHON := python2