title: Python - Glob without absolute path
body: <p>I m using glob in order to get names of pairs of pictures for a great number of images. The only problem is that i get absolute path and i dont want of that, i need only names of pictures. How can i do?</p>
  
  <pre><code>import glob
  
  A=sorted(glob.glob('/media/test/A*.png'))
  B=sorted(glob.glob('/media/test/B*.png'))
  NumbSeq=len(A)
  for i in range(0,NumbSeq):
    print "\"%s\",\"%s\","%(A[i],B[i])
  </code></pre>
  
  <p>I get that :</p>
  
  <pre><code> "/media/test/A170900_85495.460376.png","/media/test/B170900_85495.460376.png"
  </code></pre>
  
  <p>I need that :</p>
  
  <pre><code> "A170900_85495.460376.png","B170900_85495.460376.png"
  </code></pre>