1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-03-16 08:29:15 +01:00

OP-1324 removed use of env variable in python.pri

This commit is contained in:
James Duley 2014-08-23 14:53:22 +12:00
parent 23ba253cba
commit 3e8de2e362

View File

@ -15,7 +15,12 @@ OPENPILOT_TOOLS_DIR = $$(OPENPILOT_TOOLS_DIR)
PYTHON = \"$$ROOT_DIR/tools/$$PYTHON_DIR/python\" PYTHON = \"$$ROOT_DIR/tools/$$PYTHON_DIR/python\"
} else { } else {
# not found, hope it's in the path... # not found, hope it's in the path...
PYTHON = \"$$(PYTHON)\" PYTHON_VER = $$system(python --version 2>&1)
contains(PYTHON_VER, "Python 2") {
PYTHON = \"python\"
} else {
PYTHON = \"python2\"
}
} }
} }