[FIX] addons: Show the module without an __openerp__.py or __terp__.py file

bzr revid: stephane@openerp.com-20100312120308-eqitcypi771xvos8
This commit is contained in:
Stephane Wirtel 2010-03-12 13:03:08 +01:00
parent ed226216d1
commit 4eadbbf6c6
2 changed files with 2 additions and 2 deletions

View File

@ -299,11 +299,11 @@ def load_information_from_description_file(module):
:param module: The name of the module (sale, purchase, ...)
"""
for filename in ['__openerp__.py', '__terp__.py']:
description_file = addons.get_module_resource(module, filename)
description_file = get_module_resource(module, filename)
if os.path.isfile(description_file):
return eval(tools.file_open(description_file).read())
raise Exception('The module %s does not contain a description file: __openerp__.py or __terp__.py (deprecated)')
raise Exception('The module %s does not contain a description file: __openerp__.py or __terp__.py (deprecated)' % module)
def get_modules_with_version():
modules = get_modules()