We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e6680a5 commit 3861a37Copy full SHA for 3861a37
1 file changed
src/datacustomcode/deploy.py
@@ -386,8 +386,9 @@ def zip(
386
# Skip .DS_Store files when adding to zip
387
for file in files:
388
if file != ".DS_Store":
389
- file_path = os.path.join(root, file)
390
- zipf.write(file_path)
+ abs_path = os.path.join(root, file)
+ arcname = os.path.relpath(abs_path, directory)
391
+ zipf.write(abs_path, arcname)
392
393
logger.debug(f"Created zip file: {ZIP_FILE_NAME}")
394
0 commit comments