summaryrefslogtreecommitdiff
path: root/bin/addons/__init__.py
diff options
context:
space:
mode:
authorXavier Morel <xmo@openerp.com>2010-10-21 12:44:39 +0200
committerXavier Morel <xmo@openerp.com>2010-10-21 12:44:39 +0200
commit5ee5a24bdcadf47e45ca11ff300a724c3e2335bb (patch)
treea270a426a60e2a637af3012775aebb8340afab76 /bin/addons/__init__.py
parentfcdebe59240ea817b7b144c87ebb72e89a3937ad (diff)
[REV] previous revision in part: back to returning false when resource not found
bzr revid: xmo@openerp.com-20101021104439-sjrixx5ubwu5wa8d
Diffstat (limited to 'bin/addons/__init__.py')
-rw-r--r--bin/addons/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/addons/__init__.py b/bin/addons/__init__.py
index 43453d5dc5c..597a5d73d2e 100644
--- a/bin/addons/__init__.py
+++ b/bin/addons/__init__.py
@@ -270,7 +270,7 @@ def get_module_resource(module, *args):
@return: absolute path to the resource
"""
a = get_module_path(module)
- if not a: raise ValueError('Could not find path for module %s'%module)
+ if not a: return False
resource_path = opj(a, *args)
if zipfile.is_zipfile( a +'.zip') :
zip = zipfile.ZipFile( a + ".zip")
@@ -280,7 +280,7 @@ def get_module_resource(module, *args):
return opj(a, resource_path)
elif os.path.exists(resource_path):
return resource_path
- raise IOError('Could not find resource %s'%resource_path)
+ raise False