~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to generate_docs.py

  • Committer: John Arbash Meinel
  • Date: 2009-06-19 17:53:37 UTC
  • mto: This revision was merged to the branch mainline in revision 4466.
  • Revision ID: john@arbash-meinel.com-20090619175337-uozt3bntdd48lh4z
Update time_graph to use X:1 ratios rather than 0.xxx ratios.
It is just easier to track now that the new code is much faster.

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
 
33
33
Run "%(prog)s --help" for the option reference.
34
34
"""
35
 
import os
 
35
 
 
36
import bzrlib.commands
36
37
import sys
37
38
from optparse import OptionParser
38
39
 
39
 
sys.path.insert(0, os.path.dirname(os.path.dirname(__file__)))
40
 
 
41
 
from bzrlib import commands, doc_generate
 
40
import tools.doc_generate
42
41
 
43
42
def main(argv):
44
43
    parser = OptionParser(usage="""%prog [options] OUTPUT_FORMAT
70
69
    if len(args) != 2:
71
70
        parser.print_help()
72
71
        sys.exit(1)
73
 
 
74
 
    commands.install_bzr_command_hooks()
 
72
    
 
73
    bzrlib.commands.install_bzr_command_hooks()
75
74
 
76
75
    infogen_type = args[1]
77
 
    infogen_mod = doc_generate.get_module(infogen_type)
 
76
    infogen_mod = tools.doc_generate.get_module(infogen_type)
78
77
 
79
78
    if options.filename:
80
79
        outfilename = options.filename