Re: python CFFI bindings integration into notmuch build/test

Subject: Re: python CFFI bindings integration into notmuch build/test

Date: Tue, 05 Nov 2019 22:22:35 -0400

To: Tomi Ollila, notmuch@notmuchmail.org

Cc:

From: David Bremner


Tomi Ollila <tomi.ollila@iki.fi> writes:


> alternative:
>
>        ...
>        print('Invoking: {}'.format(' '.join(cmd)))
>         
>        def preexec_fn(): os.environ['NOTMUCH_CONFIG'] = str(cfg_fname) 
>
>        proc = subprocess.run(cmd, timeout=5, preexec_fn=preexec_fn)
>        ...
>
> The unix fork ... (here preexec_fn called in child) ... exec model is
> superior to any other alternative ! =D

I don't consider myself a good judge of python style, so I'll defer to
Floris on that one.

d
_______________________________________________
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch

Thread: