So im making a game in Pygame. Whenever player dies the program has to run another file and close itself. for example:
import os
os.system('python my_file.py')
quit(1)
but this method doesnt really work.
When it runs my_file.py
it waits for my_file
to close and then it runs quit(1)
is there any way of making it work? (excluding subprocess popen
because i don'r really understand how it works