Temporarily set the path on apply.