Skip to content

Commit 88a551c

Browse files
committed
comfy install command
- invalid check logic for already existing path #77 (comment)
1 parent 57fa032 commit 88a551c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

comfy_cli/command/install.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,12 +166,12 @@ def execute(
166166
print(f"Installing from [bold yellow]'{url}'[/bold yellow] to '{comfy_path}'")
167167

168168
repo_dir = comfy_path
169-
parent_path = os.path.join(repo_dir, "..")
169+
parent_path = os.path.abspath(os.path.join(repo_dir, ".."))
170170

171171
if not os.path.exists(parent_path):
172172
os.makedirs(parent_path, exist_ok=True)
173173

174-
if os.path.exists(repo_dir):
174+
if not os.path.exists(repo_dir):
175175
subprocess.run(["git", "clone", url, repo_dir])
176176
elif not check_comfy_repo(repo_dir)[0]:
177177
print(

0 commit comments

Comments
 (0)