On Sat, Feb 8, 2020 at 10:11 PM Brian Theado <[email protected]> wrote:

> I just noticed the subprocess oabjects have a poll method (
https://docs.python.org/3/library/subprocess.html#subprocess.Popen.poll).
Maybe if g.execute_shell_commands is called with 'not wait', then leo
should save the proc object and at idle time make a call to proc.poll for
it (and any other launched background tasks). Then at the next idle call
proc.poll again. Keep doing that until proc.poll doesn't return None.

Thanks for this. I have just created #1489
<https://github.com/leo-editor/leo-editor/issues/1489> for this topic.
Python 3.5 and above has a new, high level, run method. Using this method
might "just work".

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAMF8tS3qw1uhFQYN5GB3XUF3m8_XRnvNU4bS7o8Zv6iDo5qugg%40mail.gmail.com.

Reply via email to