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:
parent
f4ddbe53eb
commit
c2af28246f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user