From 312e62c10a681aae2ef7dbf9cc76a831f25be8d0 Mon Sep 17 00:00:00 2001 From: "P. Christeas" Date: Thu, 21 Oct 2010 11:52:26 +0200 Subject: [PATCH] [FIX] get_module_resource should not limit to regular files. bzr revid: xmo@openerp.com-20101021095226-u3v9gtyerhm6l2g0 --- bin/addons/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/addons/__init__.py b/bin/addons/__init__.py index 72e9fb2c6e2..67d5c4406e2 100644 --- a/bin/addons/__init__.py +++ b/bin/addons/__init__.py @@ -277,7 +277,7 @@ def get_module_resource(module, *args): res = '/'.join(args) if res in files: return opj(a, res) - elif os.path.isfile(res): + elif os.path.exists(res): return res return False