python CFFI bindings integration into notmuch build/test

David Bremner david at tethera.net
Tue Nov 5 18:22:35 PST 2019


Tomi Ollila <tomi.ollila at 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


More information about the notmuch mailing list