mirror of
https://github.com/s0md3v/roop.git
synced 2025-12-06 18:08:29 +00:00
fixes the problem with square brackets in the target file path
This commit is contained in:
parent
3af2724031
commit
156ae66a57
@ -2,6 +2,7 @@ import glob
|
||||
import mimetypes
|
||||
import os
|
||||
import platform
|
||||
import re
|
||||
import shutil
|
||||
import ssl
|
||||
import subprocess
|
||||
@ -62,7 +63,7 @@ def restore_audio(target_path: str, output_path: str) -> None:
|
||||
|
||||
def get_temp_frame_paths(target_path: str) -> List[str]:
|
||||
temp_directory_path = get_temp_directory_path(target_path)
|
||||
return glob.glob1(temp_directory_path, '*.png')
|
||||
return glob.glob(re.sub(r'([\[\]])','[\\1]', os.path.join(temp_directory_path, '*.png')))
|
||||
|
||||
|
||||
def get_temp_directory_path(target_path: str) -> str:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user