Update temp_helper.py
Enable custom "temp_path" setting from facefusion.ini and args.py
This commit is contained in:
parent
ec12f679bf
commit
9f38489c7e
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user