WSL workaround now accommodates WSL 2
Examples: For WSL 1: uname()[2] = '4.4.0-18362-Microsoft' For WSL 2: uname()[2] = '4.19.104-microsoft-standard'
This commit is contained in:
parent
3198f244f2
commit
fdb3d78739
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ if sys.platform == 'win32':
|
|||
raise NotImplementedError('Windows platform not yet working for Android')
|
||||
|
||||
from platform import uname
|
||||
WSL = 'Microsoft' in uname()[2]
|
||||
WSL = 'microsoft' in uname()[2].lower()
|
||||
|
||||
ANDROID_API = '27'
|
||||
ANDROID_MINAPI = '21'
|
||||
|
|
Loading…
Reference in a new issue