diff options
| author | Rvo (Open ERP) <rvo@tinyerp.co.in> | 2010-03-11 14:19:41 +0530 |
|---|---|---|
| committer | Rvo (Open ERP) <rvo@tinyerp.co.in> | 2010-03-11 14:19:41 +0530 |
| commit | 587828161d84b829e03eb312d962b4dd9b40300f (patch) | |
| tree | a6748a3c341c046f59c8e7bd6555a0bd1964a983 /setup.py | |
| parent | 0dfa91ac8a0851d7972e8319f9fc26dfde7df731 (diff) | |
[ADD]:suppot for __openerp__.py or __terp__.py
bzr revid: rvo@tinyerp.co.in-20100311084941-1l92enpyz1a98hrr
Diffstat (limited to 'setup.py')
| -rwxr-xr-x | setup.py | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -77,7 +77,7 @@ def check_modules(): def find_addons(): for root, _, names in os.walk(join('bin', 'addons')): - if '__terp__.py' in names: + if '__openerp__.py' or '__terp__.py' in names: yield basename(root), root #look for extra modules try: @@ -86,7 +86,11 @@ def find_addons(): mname = mname.strip() if not mname: continue - if os.path.exists(join(empath, mname, '__terp__.py')): + 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 |
