I am trying to make a script that restarts the execution of another script using a function. I have tried looking for a solution but haven't found anything that helps. Here's the code I have.
import sys, os, time
def crashHandle():
sys.exit('An error occured.')
def haltAndRebootMain():
The function haltAndRebootMain is the one that restarts the main script. I need help executing it.