import os
print os.path.basename(filepath)

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to