Update temp_helper.py

Enable custom "temp_path" setting from facefusion.ini and args.py
This commit is contained in:
peakdeveploer 2024-11-17 21:21:31 +01:00 committed by GitHub
parent ec12f679bf
commit 9f38489c7e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -29,7 +29,9 @@ def get_temp_frames_pattern(target_path : str, temp_frame_prefix : str) -> str:
def get_base_directory_path() -> str:
return os.path.join(tempfile.gettempdir(), 'facefusion')
if config.get_str_value('paths.temp_path'):
return os.path.join(config.get_str_value('paths.temp_path'), 'facefusion')
return os.path.join(tempfile.gettempdir(), 'facefusion')
def create_base_directory() -> bool: