title: Custom module's configuration file in Odoo
body: <p>I am using Odoo 8 in ubuntu 14.04 environment. I installed a custom module with its config file which has some static values.</p>
  
  <p>I am facing <strong>File not found</strong> error when need to load that config file.</p>
  
  <p>The Addons path is resided outside of Odoo directory(i.e I was configured in odoo conf file)</p>
  
  <pre><code>addons_path = /usr/lib/python2.7/dist-packages/odoo/addons
  </code></pre>
  
  <p>The module is resided in above location.</p>
  
  <p>Previously, I get config file from odoo file directory using command..</p>
  
  <blockquote>
    <p>file_cfg = os.path.abspath(os.path.join(tools.config['root_path'],
                 '../openerp/addons/custom_module/custom_cfg.cfg'))</p>
  </blockquote>
  
  <p>It does not work out. Hence I hardcoded the path in python file as</p>
  
  <pre><code>file_cfg = '/usr/lib/python2.7/dist-packages/odoo/addons/custom_module/custom_cfg.cfg'
  </code></pre>
  
  <p><strong>How do I get the config file programmatically ?</strong></p>
  
  <p>Please give a suggestion...</p>