mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-21 16:18:29 -04:00
Tools: fix wsl2 check in sim_vehicle to match uploader.py
This commit is contained in:
parent
d9564d973d
commit
401f55254b
@ -196,8 +196,8 @@ def under_vagrant():
|
||||
|
||||
|
||||
def under_wsl2():
|
||||
from platform import uname
|
||||
return 'microsoft-standard-WSL2' in uname().release
|
||||
import platform
|
||||
return 'microsoft-standard-WSL2' in platform.release()
|
||||
|
||||
|
||||
def wsl2_host_ip():
|
||||
|
Loading…
Reference in New Issue
Block a user