From 602d04e2369b80b0055c3aca380e4a955328864e Mon Sep 17 00:00:00 2001 From: "Dr.Lt.Data" Date: Thu, 19 Dec 2024 11:33:58 +0900 Subject: [PATCH] fix: prestartup - import error --- prestartup_script.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/prestartup_script.py b/prestartup_script.py index 5aec4d46..6d86c056 100644 --- a/prestartup_script.py +++ b/prestartup_script.py @@ -16,6 +16,7 @@ sys.path.append(glob_path) import security_check import manager_util import cm_global +import manager_downloader from datetime import datetime security_check.security_check() @@ -513,7 +514,7 @@ def execute_lazy_cnr_switch(target, zip_url, from_path, to_path, no_deps, custom # 1. download archive_name = f"CNR_temp_{str(uuid.uuid4())}.zip" # should be unpredictable name - security precaution download_path = os.path.join(custom_nodes_path, archive_name) - manager_util.download_url(zip_url, custom_nodes_path, archive_name) + manager_downloader.download_url(zip_url, custom_nodes_path, archive_name) # 2. extract files into @ extracted = manager_util.extract_package_as_zip(download_path, from_path)