1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-29 14:52:12 +01:00

Merge branch 'python_fixes' into OP-1324_fix_build_when_python_isnt_python2

This commit is contained in:
James Duley 2014-08-19 10:42:33 +12:00
commit a4efd8539a

View File

@ -690,10 +690,10 @@ 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)), Python 2)
export PYTHON := python
else
export PYTHON := python2
export PYTHON := python2
endif
endif