diff --git a/glob/manager_downloader.py b/glob/manager_downloader.py index 2718de50..eb872ecf 100644 --- a/glob/manager_downloader.py +++ b/glob/manager_downloader.py @@ -80,10 +80,10 @@ def aria2_download_url(model_url: str, model_dir: str, filename: str): import tqdm import time - if model_dir.startswith(core.comfy_path): - model_dir = model_dir[len(core.comfy_path) :] - - download_dir = model_dir if model_dir.startswith('/') else os.path.join('/models', model_dir) + if os.path.isabs(model_dir): + download_dir = model_dir + else: + download_dir = os.path.join('/models', model_dir) download = aria2_find_task(download_dir, filename) if download is None: