Nikolaus Rath wrote:
> [...] But it seems that
> just uploading the new upstream release fixed that issue, nice!
Oh, I thought it must be something you did. Thanks anyway!
> [...] Can you tell me how to detect
> GNU/kFreeBSD from Python? sys.platform and os.uname are potential
> candidates, but the Python docs unfortunately don't mention what the
> values of those variables are for GNU/kFreeBSD (and if they differ from
> the one for FreeBSD and GNU/Linux).
On GNU/kFreeBSD, sys.platform is "kfreebsd9", "kfreebsd10" etc. so I
suggest using:
if sys.platform.startswith('gnukfreebsd'):
On FreeBSD it is "freebsd9", "freebsd10", etc.
Regards,
--
Steven Chamberlain
steven@pyro.eu.org
Attachment:
signature.asc
Description: Digital signature