We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a26f459 + 3861a37 commit fe139c4Copy full SHA for fe139c4
1 file changed
src/datacustomcode/deploy.py
@@ -427,8 +427,9 @@ def zip(
427
# Skip .DS_Store files when adding to zip
428
for file in files:
429
if file != ".DS_Store":
430
- file_path = os.path.join(root, file)
431
- zipf.write(file_path)
+ abs_path = os.path.join(root, file)
+ arcname = os.path.relpath(abs_path, directory)
432
+ zipf.write(abs_path, arcname)
433
434
logger.debug(f"Created zip file: {ZIP_FILE_NAME}")
435
0 commit comments