Python Obtenha o nome do arquivo sem dir
>>> os.path.basename('/path_name/1.log,/path_name/2.log')
'2.log'
Concerned Curlew
>>> os.path.basename('/path_name/1.log,/path_name/2.log')
'2.log'