My favorites | Sign in
Project Home Downloads Wiki Issues Source
Checkout   Browse   Changes    
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/usr/bin/env python
"""Export a HTML Help book into another format."""


import optparse

from htmlhelp.format.generic import GenericFormat


def main():
parser = optparse.OptionParser(usage="\n\t%prog [options] src dst", version="%prog 1.0")
(options, args) = parser.parse_args()
if len(args) != 2:
parser.error("incorrect number of arguments")

format = GenericFormat()

input = args[0]
output = args[1]

book = format.read(input)

format.write(book, output)


if __name__ == '__main__':
main()

Change log

r27 by Jose.R.Fonseca on Dec 16, 2007   Diff
Initial import.
Go to: 
Project members, sign in to write a code review

Older revisions

All revisions of this file

File info

Size: 511 bytes, 27 lines

File properties

svn:executable
Powered by Google Project Hosting