Skip to content

Commit

Permalink
Merge pull request #68 from acsone/pep420
Browse files Browse the repository at this point in the history
Don't assume odoo.addons.__path__ is a list
  • Loading branch information
sbidoul authored Jul 12, 2024
2 parents 2303983 + dec6b42 commit 6fb133c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions news/68.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Don't crash if ``odoo.addons.__path__`` is a `_NamespacePath`.
2 changes: 1 addition & 1 deletion src/manifestoo/addons_path.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
path = odoo.modules.module.ad_paths
with open(sys.argv[1], "wb") as f:
f.write(repr(path).encode("utf-8"))
f.write(repr(list(path)).encode("utf-8"))
"""


Expand Down

0 comments on commit 6fb133c

Please sign in to comment.