Skip to content

Commit

Permalink
Fix MACOS Zip Import Error when compressing plugin (Significant-Gravi…
Browse files Browse the repository at this point in the history
…tas#3629)

Co-authored-by: Nicholas Tindle <[email protected]>
  • Loading branch information
gravelBridge and ntindle authored May 2, 2023
1 parent 1d26f6b commit 2e9c80a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autogpt/plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 2e9c80a

Please sign in to comment.