summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorXavier Morel <xmo@tinyerp.com>2009-12-12 17:18:00 +0100
committerXavier Morel <xmo@tinyerp.com>2009-12-12 17:18:00 +0100
commitbf00e82591bdd9f16b74cb37cc765d1384aac6df (patch)
tree92fbbd2862c58ece2182ec5e85627e4edfd43fa6 /setup.py
parenta3c3b169740e4834711c752f2e7c78d41744f6d0 (diff)
[rem] useless 'caching' indirection which doesn't cache anything
bzr revid: xmo@tinyerp.com-20091212161800-r09hukkkibib4byf
Diffstat (limited to 'setup.py')
-rwxr-xr-xsetup.py10
1 files changed, 1 insertions, 9 deletions
diff --git a/setup.py b/setup.py
index abbaa11a2e6..4822de9f492 100755
--- a/setup.py
+++ b/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 = []