diff --git a/src/datacustomcode/deploy.py b/src/datacustomcode/deploy.py index 46109db..e181228 100644 --- a/src/datacustomcode/deploy.py +++ b/src/datacustomcode/deploy.py @@ -386,8 +386,9 @@ def zip( # Skip .DS_Store files when adding to zip for file in files: if file != ".DS_Store": - file_path = os.path.join(root, file) - zipf.write(file_path) + abs_path = os.path.join(root, file) + arcname = os.path.relpath(abs_path, directory) + zipf.write(abs_path, arcname) logger.debug(f"Created zip file: {ZIP_FILE_NAME}")