summaryrefslogtreecommitdiff
path: root/bin/addons/module_graph.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 /bin/addons/module_graph.py
parent0dfa91ac8a0851d7972e8319f9fc26dfde7df731 (diff)
[ADD]:suppot for __openerp__.py or __terp__.py
bzr revid: rvo@tinyerp.co.in-20100311084941-1l92enpyz1a98hrr
Diffstat (limited to 'bin/addons/module_graph.py')
-rwxr-xr-xbin/addons/module_graph.py13
1 files changed, 9 insertions, 4 deletions
diff --git a/bin/addons/module_graph.py b/bin/addons/module_graph.py
index 74d4115a086..e321592ccc7 100755
--- a/bin/addons/module_graph.py
+++ b/bin/addons/module_graph.py
@@ -1,7 +1,7 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
##############################################################################
-#
+#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).
#
@@ -16,7 +16,7 @@
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
@@ -32,7 +32,8 @@ if len(sys.argv) == 2 and (sys.argv[1] in ['-h', '--help']):
modules = sys.argv[1:]
if not len(modules):
- modules = map(os.path.dirname, glob.glob(os.path.join('*', '__terp__.py')))
+ modules = map(os.path.dirname, glob.glob(os.path.join('*', '__openerp__.py')))
+ modules += map(os.path.dirname, glob.glob(os.path.join('*', '__terp__.py')))
done = []
@@ -40,7 +41,11 @@ print 'digraph G {'
while len(modules):
f = modules.pop(0)
done.append(f)
- if os.path.isfile(os.path.join(f,"__terp__.py")):
+ terp_file = os.path.join(f,"__openerp__.py")
+ if not os.path.isfile(terp_file):
+ terp_file = os.path.join(f,"__terp__.py")
+
+ if os.path.isfile(terp_file):
info=eval(file(os.path.join(f,"__terp__.py")).read())
if info.get('installable', True):
for name in info['depends']: