def context_path(context):
    """Returns the physical path for brains and objects alike."""
    if hasattr(context, 'getPath'):
        return context.getPath().split('/')
    else:
        return context.getPhysicalPath()
