Dear Community Users Based on a previous thread Start two processes and wait for the second process to finish to finish the first one , I ask the following question. From the following example that opens two applications (Notepad and Paint), after what remains waiting for Paint TERMINATES and when this happens, forces the completion of Notepad.
from subprocess import Popen
notepad = Popen("notepad")
paint = Popen("mspaint")
paint.wait()
notepad.kill()
This was the first way to do it But the idea is to open two applications (Notepad and Paint), after which you wait for Paint to START and when this happens, force the completion of Notepad.