title: Python restart program not working
body: <p>When creating a GUI using tkinter in python 2.7, i want the program to restart. It seemed simple enough, and after a short amoun of research I came upon the following code, which seemed to work:</p>
  
  <pre><code>python = sys.executable
  os.execl(python, python, * sys.argv)
  </code></pre>
  
  <p>however, it has just stopped working, as in, the program runs perfectly the first time around, but then when restarting it says: </p>
  
  <p>=============================== RESTART: Shell ==============================
  .>>></p>
  
  <p>and nothing happens. If anyone knows any reason why i would be very appreciative, and any solutions to this problem would be a tremendous help.</p>
  
  <p>UPDATE:
  I tried running it in command line, however, the same issue occured however this time it said, "no such file or directory" when restarting, any ideas why?</p>