Fooocus
Fooocus copied to clipboard
correctly create directory for path_outputs if not existing
Closes https://github.com/lllyasviel/Fooocus/issues/1077
Currently the config is loaded first and falls back to the default outputs dir if it doesn't exist, then creates the fallback outputs dir... which doesn't make that much sense to me.
Expected:
- change config path_outputs to non-existing directory
- run Fooocus
- path_outputs dir does get created
Actual
- change config path_outputs to non-existing directory
- run Fooocus
- loads config, doesn't find path_outputs dir,m falls back to default value
- calls
os.makedirs(path_outputs, exist_ok=True)on fallback value - path_outputs dir does not get created