summaryrefslogtreecommitdiff
path: root/bin/addons/module_graph.py
diff options
context:
space:
mode:
authorpinky <>2006-12-07 13:41:40 +0000
committerpinky <>2006-12-07 13:41:40 +0000
commit004a0b996ff8f269451e07346f71a129a1f3fbaf (patch)
tree48f43c1fc2ca4c1f4d5648e7e73553d3f4ccae06 /bin/addons/module_graph.py
New trunk
bzr revid: pinky-3f10ee12cea3c4c75cef44ab04ad33ef47432907
Diffstat (limited to 'bin/addons/module_graph.py')
-rw-r--r--bin/addons/module_graph.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/bin/addons/module_graph.py b/bin/addons/module_graph.py
new file mode 100644
index 00000000000..64f79dd8f1a
--- /dev/null
+++ b/bin/addons/module_graph.py
@@ -0,0 +1,12 @@
+#!/usr/bin/python
+
+import os
+
+print 'digraph G {'
+for f in os.listdir('.'):
+ if os.path.isfile(os.path.join(f,"__terp__.py")):
+ info=eval(file(os.path.join(f,"__terp__.py")).read())
+ if info.get('active', True):
+ for name in info['depends']:
+ print '\t%s -> %s;' % (f, name)
+print '}'