diff options
| author | Xavier Morel <xmo@tinyerp.com> | 2009-12-12 17:18:00 +0100 |
|---|---|---|
| committer | Xavier Morel <xmo@tinyerp.com> | 2009-12-12 17:18:00 +0100 |
| commit | bf00e82591bdd9f16b74cb37cc765d1384aac6df (patch) | |
| tree | 92fbbd2862c58ece2182ec5e85627e4edfd43fa6 /setup.py | |
| parent | a3c3b169740e4834711c752f2e7c78d41744f6d0 (diff) | |
[rem] useless 'caching' indirection which doesn't cache anything
bzr revid: xmo@tinyerp.com-20091212161800-r09hukkkibib4byf
Diffstat (limited to 'setup.py')
| -rwxr-xr-x | setup.py | 10 |
1 files changed, 1 insertions, 9 deletions
@@ -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 = [] |
