E.g. from the bbc iplayer plugin:
. environment = os.environ.get( "OS", "xbox" )
timeout = int(__addon__.getSetting('socket_timeout'))
timeout = 5
if environment in ['Linux', 'xbox'] and timeout > 0:
Is this still necessary? Is there a best practice documented for this? E.g. the bbc iplayer seems to exclude all platforms except xbox and those that are linux-based, so what about iOS etc.?