Skip to content

Commit

Permalink
Update goplatform.py consider android android
Browse files Browse the repository at this point in the history
Avoid exec format error
  • Loading branch information
neurlang authored Oct 13, 2024
1 parent 26a82d9 commit e9a8409
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pygoruut/goplatform.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ def _determine_os(self):
system = platform.system().lower()
if system == 'linux':
# Check if it's Android
#if hasattr(sys, 'getandroidapilevel'):
# return OS.ANDROID
if hasattr(sys, 'getandroidapilevel'):
return OS.ANDROID
return OS.LINUX
elif system == 'darwin':
return OS.DARWIN
Expand Down

0 comments on commit e9a8409

Please sign in to comment.