@ -32,7 +32,7 @@ sys.path.append('../..')
from torchvision . datasets . utils import download_url
from torchvision . datasets . utils import download_url
# ensure .js
# ensure .js
print ( " ### Loading: ComfyUI-Manager (V0.12.2 ) " )
print ( " ### Loading: ComfyUI-Manager (V0.13 ) " )
comfy_ui_revision = " Unknown "
comfy_ui_revision = " Unknown "
@ -695,6 +695,9 @@ async def install_custom_node(request):
res = False
res = False
if len ( json_data [ ' files ' ] ) == 0 :
return web . Response ( status = 400 )
if install_type == " unzip " :
if install_type == " unzip " :
res = unzip_install ( json_data [ ' files ' ] )
res = unzip_install ( json_data [ ' files ' ] )
@ -705,6 +708,11 @@ async def install_custom_node(request):
elif install_type == " git-clone " :
elif install_type == " git-clone " :
res = gitclone_install ( json_data [ ' files ' ] )
res = gitclone_install ( json_data [ ' files ' ] )
if ' pip ' in json_data :
for pname in json_data [ ' pip ' ] :
install_cmd = [ sys . executable , " -m " , " pip " , " install " , pname ]
try_install_script ( json_data [ ' files ' ] [ 0 ] , " . " , install_cmd )
if res :
if res :
print ( f " After restarting ComfyUI, please refresh the browser. " )
print ( f " After restarting ComfyUI, please refresh the browser. " )
return web . json_response ( { } , content_type = ' application/json ' )
return web . json_response ( { } , content_type = ' application/json ' )