Commit Graph
4 Commits
Author SHA1 Message Date
PozzettiAndrea b8de26b68c Drop comfy-env dependency: stdlib + relative import only
User wants GaussianPack fully self-contained — no comfy-env in the
runtime path. Three swaps + one orphan deletion:

1. prestartup_script.py: `comfy_env.copy_files(src, dst)` -> stdlib
   shutil.copy2 loop. Same semantics (top-level files, non-clobbering),
   6 lines. Fixes the NameError that snuck in earlier when the
   `from comfy_env import copy_files` line was removed without
   replacement; in the test workspace `apple.ply` actually lands in
   `input/` now.

2. __init__.py: `comfy_env.register_nodes()` -> `from .nodes import
   NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS`. That's literally
   what register_nodes() boils down to when no nodes/comfy-env.toml is
   present (the no-isolation branch). Hyphenated parent package names
   are fine for relative imports — verified earlier in this session
   with a Foo-Bar fixture via importlib.import_module.

3. nodes/__init__.py: docstring update — drop the "calls
   comfy_env.register_nodes()" mention now that the root does the
   relative import directly.

4. comfy-env-root.toml: deleted. The [node_reqs] section only had
   meaning for comfy-env's isolation discovery; with no comfy-env in
   play it was dead metadata.

`comfy-test.toml` stays (that's a different tool — comfy-test, not
comfy-env). `requirements.txt` stays (numpy + plyfile + NanoGS git).

`grep -rn comfy_env` across the repo returns 0 hits. Import smoke
test in the worker pixi env resolves all 5 nodes
(PreviewGaussians, GaussianMerge, LoadPLY, GaussianAnalysis,
GaussianExport).
2026-05-16 19:55:52 +02:00
PozzettiAndrea dc6909a94e recurse glob 2026-05-16 16:18:40 +02:00
PozzettiAndrea eee3bee6ba new workflow 2026-05-16 15:40:07 +02:00
PozzettiAndrea 1a638ac662 Add prestartup_script.py to seed ComfyUI/input/ with bundled assets
Mirrors LiTo's prestartup pattern: on each ComfyUI startup, copies
files from this repo's `assets/` directory (currently apple.ply, ~50MB)
into the host ComfyUI's `input/` directory.

Uses `comfy_env.copy_files`, which is non-clobbering — pre-existing
files in input/ are left alone, so user edits and uploads survive
restarts. Skipped if assets/ is missing (e.g. fresh shallow clone).
2026-05-16 15:12:49 +02:00