We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e8a63f1 commit f221c3dCopy full SHA for f221c3d
1 file changed
entrypoint.py
@@ -68,11 +68,13 @@ def create_tar_archive(output_dir, directory):
68
"""Create a tar archive of the compiled puzzles"""
69
from hivecraft.alghive import Alghive
70
tar_filename = os.path.join(output_dir, f"{os.path.basename(directory)}.tar")
71
+ dir_output = os.path.join(output_dir, directory)
72
+
73
print(f"📦 Creating tar archive: {tar_filename}")
74
75
with tarfile.open(tar_filename, "w") as tar:
- for file in os.listdir(output_dir):
- 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)
78
if file.endswith(Alghive.EXTENSION) and os.path.isfile(file_path):
79
tar.add(file_path, arcname=os.path.basename(file_path))
80
0 commit comments