Skip to content

Commit 58d89c6

Browse files
committed
Formatting.
1 parent cf0a468 commit 58d89c6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

comfy_cli/file_utils.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,12 @@ def zip_files(zip_filename):
110110

111111
with zipfile.ZipFile(zip_filename, "w", zipfile.ZIP_DEFLATED) as zipf:
112112
for root, dirs, files in os.walk("."):
113-
if ".git" in dirs: # Still skip .git directory
113+
if ".git" in dirs:
114114
dirs.remove(".git")
115115
for file in files:
116116
file_path = os.path.join(root, file)
117-
if zip_filename in file_path: # Skip the zip file itself
117+
# Skip zipping the zip file itself
118+
if zip_filename in file_path:
118119
continue
119120
relative_path = os.path.relpath(file_path, start=".")
120121
zipf.write(file_path, relative_path)

0 commit comments

Comments
 (0)