Skip to content

Commit f221c3d

Browse files
committed
Third Version
1 parent e8a63f1 commit f221c3d

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

entrypoint.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,13 @@ def create_tar_archive(output_dir, directory):
6868
"""Create a tar archive of the compiled puzzles"""
6969
from hivecraft.alghive import Alghive
7070
tar_filename = os.path.join(output_dir, f"{os.path.basename(directory)}.tar")
71+
dir_output = os.path.join(output_dir, directory)
72+
7173
print(f"📦 Creating tar archive: {tar_filename}")
7274

7375
with tarfile.open(tar_filename, "w") as tar:
74-
for file in os.listdir(output_dir):
75-
file_path = os.path.join(output_dir, file)
76+
for file in os.listdir(dir_output):
77+
file_path = os.path.join(dir_output, file)
7678
if file.endswith(Alghive.EXTENSION) and os.path.isfile(file_path):
7779
tar.add(file_path, arcname=os.path.basename(file_path))
7880

0 commit comments

Comments
 (0)