Python получить имя файла без Dir

>>> os.path.basename('/path_name/1.log,/path_name/2.log')
'2.log'
Concerned Curlew