Fixed for directory not having __openerp__ or __terp__ files

bzr revid: hda@tinyerp.com-20100312101534-gmpph29sc47wweo6
This commit is contained in:
HDA (OpenERP)
2010-03-12 15:45:34 +05:30
parent 9e7f453649
commit b528a80036
+3 -2
View File
@@ -32,6 +32,7 @@ import pooler
import netsvc
from osv import fields
import addons
import zipfile
import release
@@ -302,8 +303,8 @@ def load_information_from_description_file(module):
description_file = addons.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)')
return
# raise Exception('The module %s does not contain a description file: __openerp__.py or __terp__.py (deprecated)')
def get_modules_with_version():
modules = get_modules()