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:
parent
23ba253cba
commit
3e8de2e362
@ -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\"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user