forked from AUTOMATIC1111/stable-diffusion-webui
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathinstall_ext.py
More file actions
29 lines (25 loc) · 693 Bytes
/
install_ext.py
File metadata and controls
29 lines (25 loc) · 693 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2023/3/6 2:53 PM
# @Author : wangdongming
# @Site :
# @File : install_ext.py
# @Software: Hifive
import os
from modules.ui_extensions import install_extension_from_url
def setup():
urls = [
'https://github.com/Mikubill/sd-webui-controlnet',
'https://github.com/dtlnor/stable-diffusion-webui-localization-zh_CN'
]
for url in urls:
basename = os.path.basename(url)
print(f"install extentsion:{basename}")
install_extension_from_url(None, url)
def safety_setup():
try:
setup()
except Exception as ex:
print(ex)
if __name__ == '__main__':
setup()