summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorRvo (Open ERP) <rvo@tinyerp.co.in>2010-03-11 14:19:41 +0530
committerRvo (Open ERP) <rvo@tinyerp.co.in>2010-03-11 14:19:41 +0530
commit587828161d84b829e03eb312d962b4dd9b40300f (patch)
treea6748a3c341c046f59c8e7bd6555a0bd1964a983 /setup.py
parent0dfa91ac8a0851d7972e8319f9fc26dfde7df731 (diff)
[ADD]:suppot for __openerp__.py or __terp__.py
bzr revid: rvo@tinyerp.co.in-20100311084941-1l92enpyz1a98hrr
Diffstat (limited to 'setup.py')
-rwxr-xr-xsetup.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/setup.py b/setup.py
index 9d7a735d2f6..bc2d8b64d3f 100755
--- a/setup.py
+++ b/setup.py
@@ -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