[FIX] get_module_resource should not limit to regular files.
bzr revid: xmo@openerp.com-20101021095226-u3v9gtyerhm6l2g0
This commit is contained in:
committed by
Xavier Morel
parent
0548860aff
commit
312e62c10a
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user