Re: Replacement for setxattr on kFreeBSD?
On Mar 02 2016, Steven Chamberlain <steven@pyro.eu.org> wrote:
>> [...] 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'):
Aeh, so what is it now, 'kfreebsd' or 'gnukfreebsd'?
Best,
-Nikolau
--
GPG encrypted emails preferred. Key id: 0xD113FCAC3C4E599F
Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F
»Time flies like an arrow, fruit flies like a Banana.«
Reply to: