Skip to content

Commit 928629a

Browse files
committed
add arcname option
1 parent 6c81931 commit 928629a

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/datacustomcode/deploy.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -378,8 +378,7 @@ def zip(
378378
for file in files:
379379
if file != ".DS_Store":
380380
file_path = os.path.join(root, file)
381-
zipf.write(file_path)
382-
381+
zipf.write(file_path, arcname=file)
383382
logger.debug(f"Created zip file: {ZIP_FILE_NAME}")
384383

385384

0 commit comments

Comments
 (0)