Skip to content

Commit 47a7422

Browse files
authored
fix: remove useless isolated env checker in launch (#84)
1 parent 78b63fe commit 47a7422

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

comfy_cli/cmdline.py

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -484,20 +484,18 @@ def background_launch(extra):
484484

485485

486486
def launch_comfyui(extra):
487-
env_path = EnvChecker().get_isolated_env()
488487
reboot_path = None
489488

490489
new_env = os.environ.copy()
491490

492-
if env_path is not None:
493-
session_path = os.path.join(
494-
ConfigManager().get_config_path(), "tmp", str(uuid.uuid4())
495-
)
496-
new_env["__COMFY_CLI_SESSION__"] = session_path
497-
new_env["PYTHONENCODING"] = "utf-8"
491+
session_path = os.path.join(
492+
ConfigManager().get_config_path(), "tmp", str(uuid.uuid4())
493+
)
494+
new_env["__COMFY_CLI_SESSION__"] = session_path
495+
new_env["PYTHONENCODING"] = "utf-8"
498496

499-
# To minimize the possibility of leaving residue in the tmp directory, use files instead of directories.
500-
reboot_path = os.path.join(session_path + ".reboot")
497+
# To minimize the possibility of leaving residue in the tmp directory, use files instead of directories.
498+
reboot_path = os.path.join(session_path + ".reboot")
501499

502500
extra = extra if extra is not None else []
503501

0 commit comments

Comments
 (0)