Skip to content

Commit

Permalink
WSL workaround now accommodates WSL 2
Browse files Browse the repository at this point in the history
Examples:

For WSL 1:
	uname()[2] = '4.4.0-18362-Microsoft'
For WSL 2:
	uname()[2] = '4.19.104-microsoft-standard'
  • Loading branch information
stefan-sherwood authored and tito committed Oct 2, 2020
1 parent 3198f24 commit fdb3d78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion buildozer/targets/android.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
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'
Expand Down

0 comments on commit fdb3d78

Please sign in to comment.