Tools: use Python 3, improve import checks

In more detail:
- Change shebang to Python 3.
- Suggest installation using pip3 as user.
This commit is contained in:
Julian Oes
2020-01-16 16:25:26 +01:00
parent e98fa891fe
commit b04f68553e
7 changed files with 63 additions and 36 deletions
+5 -2
View File
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
############################################################################
#
# Copyright (c) 2012-2017 PX4 Development Team. All rights reserved.
@@ -742,7 +742,10 @@ def main():
if not pyserial_installed:
print("Error: pyserial not installed!")
print(" (Install using: sudo pip install pyserial)")
print("")
print("You may need to install it using:")
print(" pip3 install --user pyserial")
print("")
sys.exit(1)
# Load the firmware file