Severus Snape
Severus Snape

Reputation: 65

How can get the custom addons path in odoo by code

The custom module I'm Working on Requires to Write Some files to the odoo addons path. Can anybody Tell me How to get the addons path by code?

Upvotes: 1

Views: 526

Answers (1)

Ajmal JK
Ajmal JK

Reputation: 833

You can get the addons path from the code like this,

import odoo.tools as tools

path = tools.config.get('addons_path')

Upvotes: 2

Related Questions