AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
Fix MACOS Zip Import Error when compressing plugin (#3629)
gravelBridge2e9c80a486c8
diff --git a/autogpt/plugins.py b/autogpt/plugins.pyindex a5fe43d83f..dbf3701735 100644--- a/autogpt/plugins.py+++ b/autogpt/plugins.py@@ -33,7 +33,7 @@ def inspect_zip_for_modules(zip_path: str, debug: bool = False) -> list[str]:result = []with zipfile.ZipFile(zip_path, "r") as zfile:for name in zfile.namelist():- if name.endswith("__init__.py"):+ if name.endswith("__init__.py") and not name.startswith("__MACOSX"):logger.debug(f"Found module '{name}' in the zipfile at: {name}")result.append(name)if len(result) == 0: