Tomi Ollila <[email protected]> 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
[email protected]
https://notmuchmail.org/mailman/listinfo/notmuch

Reply via email to