I have a python script script_a.py
that uses subprocess.call()
that executes another script script_b.py
as it's last instruction before ending. I need script_b.py
to wait until script_a.py
closes before proceeding with its own instructions. For this I am using a while loop within script_b.py
. How can I do this? All of my current solutions I have tried have script_a.py
waiting until script_b.py
is finished before it closes itself. I have a feeling this might involve atexit()
or something similar, but I am lost.
Many thanks!