Отдельный путь Python
path, head, tail = os.path.split(path)
Real Raccoon
path, head, tail = os.path.split(path)