how to restart a program using code code example
Example: how to restart program in python
import os
import sys
os.execl(sys.executable, sys.executable, *sys.argv)
import os
import sys
os.execl(sys.executable, sys.executable, *sys.argv)