I have two python scripts call a.py and b.py.
From inside a.py, I am giving command
os.system('python b.py')
If some exception is found in b.py, I want the complete execution of both a.py and b.py to be halted. Is there a way to do that?
I am not importing b.py in a.py. I am simply calling it using os.system().
How can the same be achieved even if I import the other script?