Skip to content

Commit 927ff95

Browse files
Merge pull request mavlink#399 from mavlink/pr-fix-version-check
Fix version check
2 parents 73118a5 + 0e6cc50 commit 927ff95

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mavsdk/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
from .system import System
88

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

0 commit comments

Comments
 (0)