fix: import error - cnr_utils.extract_package_as_zip

This commit is contained in:
Dr.Lt.Data 2024-12-19 08:20:39 +09:00
parent 87d447f7b5
commit e4bb21f25c
2 changed files with 3 additions and 3 deletions

View File

@ -876,7 +876,7 @@ class UnifiedManager:
# 2. extract files into <node_id>@<cur_ver> # 2. extract files into <node_id>@<cur_ver>
install_path = self.active_nodes[node_id][1] install_path = self.active_nodes[node_id][1]
extracted = cnr_utils.extract_package_as_zip(download_path, install_path) extracted = manager_util.extract_package_as_zip(download_path, install_path)
os.remove(download_path) os.remove(download_path)
if extracted is None: if extracted is None:
@ -1144,7 +1144,7 @@ class UnifiedManager:
manager_util.download_url(node_info.download_url, get_default_custom_nodes_path(), archive_name) manager_util.download_url(node_info.download_url, get_default_custom_nodes_path(), archive_name)
os.makedirs(install_path, exist_ok=True) os.makedirs(install_path, exist_ok=True)
extracted = cnr_utils.extract_package_as_zip(download_path, install_path) extracted = manager_util.extract_package_as_zip(download_path, install_path)
os.remove(download_path) os.remove(download_path)
result.to_path = install_path result.to_path = install_path

View File

@ -618,7 +618,7 @@ export class CustomNodesManager {
}, },
"switch": { "switch": {
label: "Switch", label: "Switch Ver",
mode: "switch" mode: "switch"
} }
} }