Skip to content

Commit

Permalink
fixed os detection for darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
elgatito committed Nov 23, 2017
1 parent 1a6ec1e commit e89642a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions resources/site-packages/elementum/osarch.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@ def get_platform():
ret["os"] = "darwin"
ret["arch"] = "x64"

if platform.platform().contains("AppleTV"):
if "AppleTV" in platform.platform():
ret["os"] = "ios"
ret["arch"] = "arm-7"
if platform.platform().contains("64bit"):
if "64bit" in platform.platform():
ret["arch"] = "arm64"
elif xbmc.getCondVisibility("system.platform.ios"):
ret["os"] = "ios"
ret["arch"] = "arm-7"
if platform.platform().contains("64bit"):
if "64bit" in platform.platform():
ret["arch"] = "arm64"

# elif xbmc.getCondVisibility("system.platform.osx"):
Expand Down

0 comments on commit e89642a

Please sign in to comment.