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