Skip to content

Commit

Permalink
Fix version check
Browse files Browse the repository at this point in the history
With the previous float casting Python 3.10 did not pass anymore when it
should be fine.
  • Loading branch information
julianoes committed Oct 24, 2021
1 parent 73118a5 commit 0e6cc50
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mavsdk/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
from .system import System

# Check for compatibility
if float(".".join(platform.python_version_tuple()[0:-1])) < 3.6:
(major, minor, _) = platform.python_version_tuple()
if not ((int(major) >= 3 and int(minor) >= 6) or (int(major) >= 4)):
print("[!] MAVSDK-Python is only available on Python >= 3.6")
sys.exit(1)

Expand Down

0 comments on commit 0e6cc50

Please sign in to comment.