Skip to content

Commit

Permalink
Update show_data_type_info.py (#177)
Browse files Browse the repository at this point in the history
Use the new pyuavcan_v0 package; drop support for Python 2
  • Loading branch information
pavel-kirienko authored Aug 11, 2021
1 parent 8ee343c commit c9e482e
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions show_data_type_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,13 @@
# Execute with --help to get usage info.
#

''''which python3 >/dev/null 2>&1 && exec python3 "$0" "$@" # '''
''''which python >/dev/null 2>&1 && exec python "$0" "$@" # '''
''''which python2 >/dev/null 2>&1 && exec python2 "$0" "$@" # '''
''''exec echo "Python not found" >&2 # '''

# We can't import from __future__ here because of the wickedness above.
import sys # noqa: E402
import getopt # noqa: E402

try:
import uavcan
import pyuavcan_v0 as uavcan
except ImportError:
sys.stderr.write('PyUAVCAN is not installed. Please install from PIP: sudo pip3 install uavcan\n')
sys.stderr.write('PyUAVCAN v0 is not installed. Please install from PIP: pip install pyuavcan_v0\n')
exit(1)


Expand Down

0 comments on commit c9e482e

Please sign in to comment.