MCPcopy Create free account
hub / github.com/ComfyWorkflows/ComfyUI-Launcher / setup_initial_models_folder

Function setup_initial_models_folder

server/utils.py:179–188  ·  view source on GitHub ↗
(models_folder_path)

Source from the content-addressed store, hash-verified

177 )
178
179def setup_initial_models_folder(models_folder_path):
180 assert not os.path.exists(
181 models_folder_path
182 ), f"Models folder already exists: {models_folder_path}"
183
184 tmp_dir = os.path.join(os.path.dirname(models_folder_path), "tmp_comfyui")
185 run_command(["git", "clone", COMFYUI_REPO_URL, tmp_dir])
186
187 shutil.move(os.path.join(tmp_dir, "models"), models_folder_path)
188 shutil.rmtree(tmp_dir)
189
190
191def is_launcher_json_format(import_json):

Callers 1

create_comfyui_projectFunction · 0.90

Calls 1

run_commandFunction · 0.85

Tested by

no test coverage detected