Complete module rename across 552 files: - comfy/ → studio/ - comfy_extras/ → studio_extras/ - comfy_api/ → studio_api/ - comfy_api_nodes/ → studio_api_nodes/ - comfy_config/ → studio_config/ - comfy_execution/ → studio_execution/ - comfy/comfy_types/ → studio/node_types/ - comfyui_version.py → studio_version.py - All test directories renamed - All import statements updated - All internal identifiers renamed (ComfyNodeABC → StudioNodeABC, etc.) - All wire protocol types renamed (COMFY_* → STUDIO_*) - No backward compatibility shims — clean break - External pip packages preserved (comfyui-frontend-package, comfy-kitchen, etc.) - 518 Python files syntax-validated, 0 errors
18 lines
368 B
Python
18 lines
368 B
Python
# Prevent custom nodes from hooking anything important
|
|
import studio.model_management
|
|
|
|
HOOK_BREAK = [(studio.model_management, "cast_to")]
|
|
|
|
|
|
SAVED_FUNCTIONS = []
|
|
|
|
|
|
def save_functions():
|
|
for f in HOOK_BREAK:
|
|
SAVED_FUNCTIONS.append((f[0], f[1], getattr(f[0], f[1])))
|
|
|
|
|
|
def restore_functions():
|
|
for f in SAVED_FUNCTIONS:
|
|
setattr(f[0], f[1], f[2])
|