Skip to content
Snippets Groups Projects
Commit 75efe4b4 authored by fw-bot's avatar fw-bot Committed by Christophe Monniez
Browse files

[FIX] test_lint: force absolute path to compute odoo path


When using the flamegraph module from a parent directory of odoo, the
dirname method returns a relative path, leading to a traceback.

With this commit, the odoo_path is enforced to be an absolute path.

closes odoo/odoo#40124

Signed-off-by: default avatarChristophe Monniez (moc) <moc@odoo.com>
parent c165390e
No related branches found
No related tags found
No related merge requests found
......@@ -24,7 +24,7 @@ class TestConflictMarkers(TransactionCase):
counter = 0
odoo_path = os.path.dirname(odoo.__file__)
odoo_path = os.path.abspath(os.path.dirname(odoo.__file__))
paths = odoo.addons.__path__ + [odoo_path]
paths.remove(os.path.join(odoo_path, 'addons')) # avoid checking odoo/addons twice
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment