[FIX] get_module_resource should not limit to regular files.

bzr revid: xmo@openerp.com-20101021095226-u3v9gtyerhm6l2g0
This commit is contained in:
P. Christeas
2010-10-21 11:52:26 +02:00
committed by Xavier Morel
parent 0548860aff
commit 312e62c10a
+1 -1
View File
@@ -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