[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Replacement for setxattr on kFreeBSD?

Nikolaus Rath <Nikolaus@rath.org> (2016-03-03):
> 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'?

Trying isn't that hard:

kibi@arya:~$ ssh falla.debian.org 'python -c "import sys; print sys.platform"'


Attachment: signature.asc
Description: Digital signature

Reply to: