i need to get the name of a file from the string containing the path.
import os.path p = r'c:\file\myfile.gif' os.path.basename(p)
os.path.dirname(p)
'c:\\file'
Hope that helps.
-- Rikard.