mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-03-09 08:11:06 -07:00
create user extensions directory if not exists
This commit is contained in:
parent
6b3981c068
commit
23a9d5e273
1 changed files with 2 additions and 0 deletions
|
|
@ -10,6 +10,8 @@ extensions = []
|
|||
extensions_dir = os.path.join(paths.data_path, "extensions")
|
||||
extensions_builtin_dir = os.path.join(paths.script_path, "extensions-builtin")
|
||||
|
||||
if not os.path.exists(extensions_dir):
|
||||
os.makedirs(extensions_dir)
|
||||
|
||||
def active():
|
||||
return [x for x in extensions if x.enabled]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue