We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c6efc7d commit f2f07c9Copy full SHA for f2f07c9
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, arcname=file)
+ abs_path = os.path.join(root, file)
+ arcname = os.path.relpath(abs_path, directory)
391
+ zipf.write(abs_path, arcname)
392
logger.debug(f"Created zip file: {ZIP_FILE_NAME}")
393
394
0 commit comments