Looking at the history it appears that these were part of an excellent user contribution to add support for the GP2X platform. At the time of writing, PyKaraoke officially supported the Linux, Windows and GP2X platforms, hence the logic behind those tests. Since the tests were introduced four years ago PyKaraoke has been found to work on at least two of the BSDs as well (FreeBSD and NetBSD) which as you have identified will have been flagged as OSX.<div>
<br></div><div>There is no real distinction needed between the currently working Unix-based platforms (Linux, BSD and OSX) and they are generally used for UI tweaks. The important distinctions are currently between Unix-based platforms, Windows and GP2X. With that in mind a better test would probably be something like:<div>
<div><div><div><br></div><div>if <a href="http://os.name">os.name</a> == &quot;posix&quot;:</div><div>    (uname, host, release, version, machine) = os.uname()</div><div>    if host == &quot;gp2x&quot;:</div><div>        env = ENV_GP2X</div>
<div>    else:</div><div>        env = ENV_POSIX</div><div><div>else if <a href="http://os.name">os.name</a> == &quot;nt&quot;:</div><div>    env = ENV_WINDOWS</div><div>else:</div><div>    env = ENV_UNKNOWN</div><div><br>
</div></div></div><div>This would have the added benefit of removing the necessity to return to this code to add additional uname responses in future such as for the aforementioned Hurd and kFreeBSD.</div></div></div></div>