~openerp-dev/openobject-server/trunk-forward-port-mat

« back to all changes in this revision

Viewing changes to openerp/modules/module.py

  • Committer: Martin Trigaux
  • Date: 2014-05-12 08:05:23 UTC
  • mfrom: (5189.1.22 saas-4)
  • Revision ID: mat@openerp.com-20140512080523-t1ugjl53jfgohfde
Forward-port of latest saas-4, up to revision 5211 (revid fme@openerp.com-20140509164408-rtml4brrhpiv4zz9)

Show diffs side-by-side

added added

removed removed

Lines of Context:
177
177
 
178
178
    if not mod_path:
179
179
        mod_path = get_module_path(module)
180
 
    terp_file = opj(mod_path, '__openerp__.py')
 
180
    terp_file = mod_path and opj(mod_path, '__openerp__.py') or False
181
181
    if terp_file:
182
182
        info = {}
183
183
        if os.path.isfile(terp_file):