[rem] useless 'caching' indirection which doesn't cache anything
bzr revid: xmo@tinyerp.com-20091212161800-r09hukkkibib4byf
This commit is contained in:
parent
a3c3b16974
commit
bf00e82591
10
setup.py
10
setup.py
|
@ -73,7 +73,7 @@ def check_modules():
|
|||
print '\n'.join(errors)
|
||||
sys.exit(1)
|
||||
|
||||
def _find_addons():
|
||||
def find_addons():
|
||||
for (dp, dn, names) in os.walk(join('bin', 'addons')):
|
||||
if '__terp__.py' in names:
|
||||
modname = os.path.basename(dp)
|
||||
|
@ -95,14 +95,6 @@ def _find_addons():
|
|||
except:
|
||||
pass
|
||||
|
||||
__found_addons = None
|
||||
|
||||
# Cache the results of _find_addons() and return them
|
||||
def find_addons(found_addons = None):
|
||||
if not found_addons:
|
||||
found_addons = _find_addons()
|
||||
return found_addons
|
||||
|
||||
def data_files():
|
||||
'''Build list of data files to be installed'''
|
||||
files = []
|
||||
|
|
Loading…
Reference in New Issue