Python erhalten Sie den Dateinamen ohne 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'