LOS ANGELES — The victim of Roman Polanski’s sex assault 40 years ago will appeal directly to a judge to end the long-running case against the fugitive director, his lawyer said Thursday.

Samantha Geimer, 13 at the time of the crime, has long supported Polanski’s efforts to end the legal saga that limits his freedom, but Friday will be the first time she’s appeared in Los Angeles Superior Court on his behalf, attorney Harland Braun said.

“She’s tired of this case,” Braun said. “The judge is just playing games with him.”

The Oscar-winner has been a fugitive since he fled to France in 1978 on the eve of sentencing for the crime of having unlawful sex with a minor. Prosecutors dropped charges that he drugged, raped and sodomized the girl.

Polanski feared the judge was going to renege on a plea agreement and send him away for more time than the six weeks he served in prison during a psychiatric evaluation prior to sentencing.

His lawyers have been fighting for years to end the case and lift an international arrest warrant that confined him to his native France, Switzerland and Poland, where he fled the Holocaust.

The warrant prevented Polanski from collecting his Academy Award for best director for his 2002 film “The Pianist.” He was also nominated for 1974’s “Chinatown” and 1979’s “Tess.”

Polanski, 83, is trying to get the Interpol warrant lifted so he can move freely among nearly 190 countries in the global policing network. If that happened, the California warrant would still be valid.

Polanski contends he is the victim of judicial misconduct because the judge who handled the case suggested in private remarks that he would not honor the plea deal.