Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 59f36c19 authored by Dan Willemsen's avatar Dan Willemsen Committed by Gerrit Code Review
Browse files

Merge "Fix potential error for sys.platform"

parents 6f303519 7e0c12b1
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -72,9 +72,9 @@ ELF = collections.namedtuple(

def _get_os_name():
  """Get the host OS name."""
  if sys.platform == 'linux2':
  if sys.platform.startswith('linux'):
    return 'linux'
  if sys.platform == 'darwin':
  if sys.platform.startswith('darwin'):
    return 'darwin'
  raise ValueError(sys.platform + ' is not supported')