Splitted module report_analytic_line in 2 modules:
report_analytic_planning report_analytic_line Change module_graph.py to take a list of modules as arguments ex: gen_graph.sh profile_accounting bzr revid: fp@tinyerp.com-e5d6afc3d13ac2d6738cfb4bb66294ba1ab2c2cb
This commit is contained in:
parent
656ec31594
commit
c40fca1f25
|
@ -1,3 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
./module_graph.py | dot -Tpng -o > module_graph.png
|
||||
./module_graph.py $@ | dot -Tpng -o > module_graph.png
|
||||
|
|
|
@ -1,12 +1,23 @@
|
|||
#!/usr/bin/python
|
||||
|
||||
import os
|
||||
import sys
|
||||
|
||||
if not len(sys.argv)>1:
|
||||
raise 'Usage: gen_graph.sh module1 module2 module3'
|
||||
|
||||
modules = sys.argv[1:]
|
||||
done = []
|
||||
|
||||
print 'digraph G {'
|
||||
for f in os.listdir('.'):
|
||||
while len(modules):
|
||||
f = modules.pop(0)
|
||||
done.append(f)
|
||||
if os.path.isfile(os.path.join(f,"__terp__.py")):
|
||||
info=eval(file(os.path.join(f,"__terp__.py")).read())
|
||||
if info.get('installable', True):
|
||||
for name in info['depends']:
|
||||
if name not in done+modules:
|
||||
modules.append(name)
|
||||
print '\t%s -> %s;' % (f, name)
|
||||
print '}'
|
||||
|
|
Loading…
Reference in New Issue