Skip to content

Commit 6fb133c

Browse files
authored
Merge pull request #68 from acsone/pep420
Don't assume odoo.addons.__path__ is a list
2 parents 2303983 + dec6b42 commit 6fb133c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

news/68.bugfix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Don't crash if ``odoo.addons.__path__`` is a `_NamespacePath`.

src/manifestoo/addons_path.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
path = odoo.modules.module.ad_paths
2525
2626
with open(sys.argv[1], "wb") as f:
27-
f.write(repr(path).encode("utf-8"))
27+
f.write(repr(list(path)).encode("utf-8"))
2828
"""
2929

3030

0 commit comments

Comments
 (0)