title: Using ls in Python subprocess.Popen function
body: <pre><code>proc = subprocess.Popen(['ls', '-v', self.localDbPath+'labris.urls.*'], stdout=subprocess.PIPE)
  while True:
      line = proc.stdout.readline()
      if line != '':
          print line
      else:
          break
  </code></pre>
  
  <p>When using the above code I get the error saying:</p>
  
  <pre><code>ls: /var/lib/labrisDB/labris.urls.*: No such file or directory
  </code></pre>
  
  <p>But when I dıo the same from shell I get no errors:</p>
  
  <pre><code>ls -v /var/lib/labrisDB/labris.urls.*
  </code></pre>
  
  <p>Also this doesn't give any error either:</p>
  
  <pre><code>proc = subprocess.Popen(['ls', '-v', self.localDbPath], stdout=subprocess.PIPE)
  while True:
      line = proc.stdout.readline()
      if line != '':
          print line
      else:
          break
  </code></pre>
  
  <p>Why is the first code failing? What am I missing?</p>