comfy-env 0.0.36__py3-none-any.whl → 0.0.37__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- comfy_env/stubs/folder_paths.py +12 -2
- comfy_env/workers/venv.py +10 -1
- {comfy_env-0.0.36.dist-info → comfy_env-0.0.37.dist-info}/METADATA +1 -1
- {comfy_env-0.0.36.dist-info → comfy_env-0.0.37.dist-info}/RECORD +7 -7
- {comfy_env-0.0.36.dist-info → comfy_env-0.0.37.dist-info}/WHEEL +0 -0
- {comfy_env-0.0.36.dist-info → comfy_env-0.0.37.dist-info}/entry_points.txt +0 -0
- {comfy_env-0.0.36.dist-info → comfy_env-0.0.37.dist-info}/licenses/LICENSE +0 -0
comfy_env/stubs/folder_paths.py
CHANGED
|
@@ -11,7 +11,7 @@ from pathlib import Path
|
|
|
11
11
|
_comfyui_base = None
|
|
12
12
|
|
|
13
13
|
def _find_comfyui_base():
|
|
14
|
-
"""Find ComfyUI base from COMFYUI_BASE env var or by walking up."""
|
|
14
|
+
"""Find ComfyUI base from COMFYUI_BASE env var, child dirs, or by walking up."""
|
|
15
15
|
global _comfyui_base
|
|
16
16
|
if _comfyui_base:
|
|
17
17
|
return _comfyui_base
|
|
@@ -21,8 +21,18 @@ def _find_comfyui_base():
|
|
|
21
21
|
_comfyui_base = Path(os.environ["COMFYUI_BASE"])
|
|
22
22
|
return _comfyui_base
|
|
23
23
|
|
|
24
|
+
# Check common child directories (for test environments)
|
|
25
|
+
# Also check parent's children (isolated venv is sibling to .comfy-test-env)
|
|
26
|
+
cwd = Path.cwd().resolve()
|
|
27
|
+
for base in [cwd, cwd.parent]:
|
|
28
|
+
for child in [".comfy-test-env/ComfyUI", "ComfyUI"]:
|
|
29
|
+
candidate = base / child
|
|
30
|
+
if (candidate / "main.py").exists() and (candidate / "comfy").exists():
|
|
31
|
+
_comfyui_base = candidate
|
|
32
|
+
return _comfyui_base
|
|
33
|
+
|
|
24
34
|
# Walk up from cwd looking for ComfyUI
|
|
25
|
-
current =
|
|
35
|
+
current = cwd
|
|
26
36
|
for _ in range(10):
|
|
27
37
|
if (current / "main.py").exists() and (current / "comfy").exists():
|
|
28
38
|
_comfyui_base = current
|
comfy_env/workers/venv.py
CHANGED
|
@@ -594,7 +594,16 @@ class PersistentVenvWorker(Worker):
|
|
|
594
594
|
self._worker_script.write_text(_PERSISTENT_WORKER_SCRIPT)
|
|
595
595
|
|
|
596
596
|
def _find_comfyui_base(self) -> Optional[Path]:
|
|
597
|
-
"""Find ComfyUI base directory
|
|
597
|
+
"""Find ComfyUI base directory."""
|
|
598
|
+
# Check common child directories (for test environments)
|
|
599
|
+
# Also check parent's children (isolated venv is sibling to .comfy-test-env)
|
|
600
|
+
for base in [self.working_dir, self.working_dir.parent]:
|
|
601
|
+
for child in [".comfy-test-env/ComfyUI", "ComfyUI"]:
|
|
602
|
+
candidate = base / child
|
|
603
|
+
if (candidate / "main.py").exists() and (candidate / "comfy").exists():
|
|
604
|
+
return candidate
|
|
605
|
+
|
|
606
|
+
# Walk up from working_dir (standard ComfyUI custom_nodes layout)
|
|
598
607
|
current = self.working_dir.resolve()
|
|
599
608
|
for _ in range(10):
|
|
600
609
|
if (current / "main.py").exists() and (current / "comfy").exists():
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: comfy-env
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.37
|
|
4
4
|
Summary: Environment management for ComfyUI custom nodes - CUDA wheel resolution and process isolation
|
|
5
5
|
Project-URL: Homepage, https://github.com/PozzettiAndrea/comfy-env
|
|
6
6
|
Project-URL: Repository, https://github.com/PozzettiAndrea/comfy-env
|
|
@@ -27,16 +27,16 @@ comfy_env/ipc/torch_bridge.py,sha256=WzdwDJa3N_1fEl9OeZxikvMbwryO5P63o0WmEDpS18A
|
|
|
27
27
|
comfy_env/ipc/transport.py,sha256=XQlRcfQsd4nd909KIYnZKvsS3ksGpGjyVucn8jvmLIU,9698
|
|
28
28
|
comfy_env/ipc/worker.py,sha256=oxTLF9xXrl8CRx_JVNBdkxZh35NuzfkdxhaUtUuXogs,6661
|
|
29
29
|
comfy_env/stubs/__init__.py,sha256=jMeWEKY30y8QqYX9AUyuZbmm607erQTc4N7YaDoAH00,38
|
|
30
|
-
comfy_env/stubs/folder_paths.py,sha256=
|
|
30
|
+
comfy_env/stubs/folder_paths.py,sha256=K90J34EG6LD4eZP8YG-xMeBmqwpp_wA8E92DKMXd1GQ,2189
|
|
31
31
|
comfy_env/workers/__init__.py,sha256=IKZwOvrWOGqBLDUIFAalg4CdqzJ_YnAdxo2Ha7gZTJ0,1467
|
|
32
32
|
comfy_env/workers/base.py,sha256=ZILYXlvGCWuCZXmjKqfG8VeD19ihdYaASdlbasl2BMo,2312
|
|
33
33
|
comfy_env/workers/pool.py,sha256=MtjeOWfvHSCockq8j1gfnxIl-t01GSB79T5N4YB82Lg,6956
|
|
34
34
|
comfy_env/workers/tensor_utils.py,sha256=TCuOAjJymrSbkgfyvcKtQ_KbVWTqSwP9VH_bCaFLLq8,6409
|
|
35
35
|
comfy_env/workers/torch_mp.py,sha256=4YSNPn7hALrvMVbkO4RkTeFTcc0lhfLMk5QTWjY4PHw,22134
|
|
36
|
-
comfy_env/workers/venv.py,sha256=
|
|
36
|
+
comfy_env/workers/venv.py,sha256=PmsVOu5i89tBYkGRupo2bjOLPBmk06q4GNUwDWsd9F8,32088
|
|
37
37
|
comfy_env/wheel_sources.yml,sha256=WHSSgbEXDKgRdJAi5FKiEU0l5dFxP_1p4JThc1bbqj8,9007
|
|
38
|
-
comfy_env-0.0.
|
|
39
|
-
comfy_env-0.0.
|
|
40
|
-
comfy_env-0.0.
|
|
41
|
-
comfy_env-0.0.
|
|
42
|
-
comfy_env-0.0.
|
|
38
|
+
comfy_env-0.0.37.dist-info/METADATA,sha256=R3q3cGBk8UxTqwtBBp4RqyozCkO_k8_0wy0qhNMhI9A,5400
|
|
39
|
+
comfy_env-0.0.37.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
40
|
+
comfy_env-0.0.37.dist-info/entry_points.txt,sha256=J4fXeqgxU_YenuW_Zxn_pEL7J-3R0--b6MS5t0QmAr0,49
|
|
41
|
+
comfy_env-0.0.37.dist-info/licenses/LICENSE,sha256=E68QZMMpW4P2YKstTZ3QU54HRQO8ecew09XZ4_Vn870,1093
|
|
42
|
+
comfy_env-0.0.37.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|