diff options
| author | YSA (Openerp) <ysa@tinyerp.com> | 2011-01-20 11:07:33 +0530 |
|---|---|---|
| committer | YSA (Openerp) <ysa@tinyerp.com> | 2011-01-20 11:07:33 +0530 |
| commit | f030d1219e2411e4b557f960d603fca1fcbb012e (patch) | |
| tree | f7cc7e772563e2a1fecc9713987b569af35bd0d4 /setup.py | |
| parent | 1b287f9b7b7ffc6719a7839753597341cc75d7fb (diff) | |
| parent | 10a6bb350c2f054e262ee4649855185795e611d5 (diff) | |
Merge with trunk-server
bzr revid: ysa@tinyerp.com-20110120053733-ws7mfcfw15p0iyy1
Diffstat (limited to 'setup.py')
| -rwxr-xr-x | setup.py | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -88,6 +88,24 @@ def find_addons(): for root, _, names in os.walk(join('bin', 'addons'), followlinks=True): if '__openerp__.py' in names or '__terp__.py' in names: yield basename(root), root + #look for extra modules + try: + empath = os.getenv('EXTRA_MODULES_PATH', '../addons/') + for mname in open(join(empath, 'server_modules.list')): + mname = mname.strip() + if not mname: + continue + + terp = join(empath, mname, '__openerp__.py') + if not os.path.exists(terp): + terp = join(empath, mname, '__terp__.py') + + if os.path.exists(terp): + yield mname, join(empath, mname) + else: + print "Module %s specified, but no valid path." % mname + except Exception: + pass def data_files(): '''Build list of data files to be installed''' |
