title: Accessing shared smb ubuntu in python scripts
body: <p>I have a shared ubuntu drive on my network that I can access in nautilus using smb://servername/sharedfolder or smb:///sharedfolder.</p>
  
  <p>I need to be able to access it python scripting from my ubuntu machine (8.10), but I can't figure out how. I tried the obvious way (same address as nautilus), but wasn't successful.</p>
  
  <p>To play around, I tried printing the content of that folder with both:</p>
  
  <p>Code:
  for file in os.listdir("smb://servername/sharedfolder")
      print file
  Both give me "no file or directory" error on that path.</p>
  
  <p>I'd really appreciate help on this - thanks.</p>