(models_folder_path)
| 177 | ) |
| 178 | |
| 179 | def 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 | |
| 191 | def is_launcher_json_format(import_json): |
no test coverage detected