title: How to start a python program recursive with os.execv?
body: <p>I have the following lines:</p>
  
  <pre><code>#!/root/p34/bin/python 
  import os
  import sys
  
  for i in range(10):
      print(i)
  
  currentFile = os.path.abspath(__file__)
  print(currentFile)  
  os.execv(currentFile, sys.argv)
  </code></pre>
  
  <p>When I try to run from console(Ubuntu 14.04) ./restart.py I get:</p>
  
  <pre><code>': [Errno 2] No such file or directory'
  </code></pre>
  
  <p>When I run <code>/root/p34/bin/python restart.py</code> I get python error:</p>
  
  <pre><code>Traceback (most recent call last):
    File "restart.py", line 10, in &lt;module&gt;
      os.execv(currentFile, sys.argv)
  FileNotFoundError: [Errno 2] No such file or directory
  </code></pre>
  
  <p>Can anyone help me with this problem?</p>