title: can't open file : [Errno 2] No such file or directory
body: <p>I get the following error when subprocess calls the process newtest.py. The code run as a daemon. When I started the daemon the process was called, it worked fine and did run 8 processes before started giving the error and then the error occurs at every call.
  The error is </p>
  
  <pre><code>  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/Resources/Python.app/Contents/MacOS/Python: can't open file 'newtest.py': [Errno 2] No such file or directory
  </code></pre>
  
  <p>the code is below:</p>
  
  <pre><code>for index,row in enumerate(jobs):
              if index &lt;= new_jobs :
                  dirs=row[0]
                  dirName=os.path.join(homeFolder,dirs)
                  logFile=os.path.join(dirName,(dirs+".log"))
                  proc=subprocess.Popen(["/opt/local/bin/python2.6","newtest.py",dirs],stdout=open(logFile,'a',0),stderr=open(logFile,'a',0))
                  proId= proc.pid
  </code></pre>
  
  <p>I tried using the full path to newtest.py but it gives the same error.
  Any suggestions? Many Thanks!</p>