diff options
| author | Fabien Pinckaers <fp@tinyerp.com> | 2007-08-02 12:09:30 +0000 |
|---|---|---|
| committer | Fabien Pinckaers <fp@tinyerp.com> | 2007-08-02 12:09:30 +0000 |
| commit | c40fca1f2570b69cb81b2c9d88fe5d13de1df0f6 (patch) | |
| tree | 91323a99bfbd627b46a8d37bea3af95359245e7d /bin/addons/module_graph.py | |
| parent | 656ec315941363ec0449f8cb6ccbe62ef5498f0e (diff) | |
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
Diffstat (limited to 'bin/addons/module_graph.py')
| -rw-r--r-- | bin/addons/module_graph.py | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/bin/addons/module_graph.py b/bin/addons/module_graph.py index 0f82b2c7411..a4e2efde9aa 100644 --- a/bin/addons/module_graph.py +++ b/bin/addons/module_graph.py @@ -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 '}' |
