pytest imports the pack root while collecting, before any fixture runs, so the comfy_api stand-in is installed when conftest loads and __init__ falls back to an absolute import outside a package, as in WarpPipe. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
8 lines
190 B
Python
8 lines
190 B
Python
if __package__:
|
|
from .realism import comfy_entrypoint
|
|
else:
|
|
# pytest imports the pack root as a plain module
|
|
from realism import comfy_entrypoint
|
|
|
|
__all__ = ["comfy_entrypoint"]
|