17 lines
440 B
Python
17 lines
440 B
Python
"""ComfyUI-DepthAnythingV3 Prestartup Script."""
|
|
|
|
from pathlib import Path
|
|
from comfy_env import setup_env, copy_files
|
|
from comfy_3d_viewers import copy_viewer
|
|
|
|
setup_env()
|
|
|
|
SCRIPT_DIR = Path(__file__).resolve().parent
|
|
COMFYUI_DIR = SCRIPT_DIR.parent.parent
|
|
|
|
# Copy pointcloud VTK viewer from comfy-3d-viewers
|
|
copy_viewer("pointcloud_vtk", SCRIPT_DIR / "web")
|
|
|
|
# Copy assets
|
|
copy_files(SCRIPT_DIR / "assets", COMFYUI_DIR / "input", "**/*")
|