When the district attorney is interested or refuses to act in a prosecution, the court may direct or permit any member of the bar to act in the district attorney's place.