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:
Stefan Sherwood 2020-09-01 12:12:59 -04:00 committed by Mathieu Virbel
parent 3198f244f2
commit fdb3d78739

View file

@ -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'