correctly create directory for path_outputs if not existing by mashb1t · Pull Request #1668 · lllyasviel/Fooocus
Navigation Menu
- Notifications You must be signed in to change notification settings
- Fork 7.8k
Conversation
Closes #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
mashb1t
changed the base branch from
main
to
develop
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters