Hello Pymol users,

I am new to pymol scripting and I want to calculate the distance between two points of all the pdb file in a directory.
I tried to write the script but seems its not working.
PLease help me.

from pymol import cmd
from glob import glob

lst = glob("*.pdb")
lst.sort()

for fil in lst:
        cmd.load(fil,"tmp")
        dst=cmd.distance('/tmp//A/LYS`203/NZ','/tmp//A/GLU`145/OE2')
        print lst