1.1 --- a/test.py Sun Oct 22 00:16:00 2006 +0200
1.2 +++ b/test.py Sun Oct 22 00:16:27 2006 +0200
1.3 @@ -21,7 +21,13 @@
1.4 v.report(exc)
1.5
1.6 if "-d" in sys.argv:
1.7 - viewer.makedoc(module, "%s%shtml" % (module.name, os.path.extsep))
1.8 - viewer.makedoc(builtins, "%s%shtml" % (builtins.name, os.path.extsep))
1.9 + try:
1.10 + dirname = "%s-docs" % module.name
1.11 + if not os.path.exists(dirname):
1.12 + os.mkdir(dirname)
1.13 + viewer.makedoc(module, os.path.join(dirname, "%s%shtml" % (module.name, os.path.extsep)))
1.14 + viewer.makedoc(builtins, os.path.join(dirname, "%s%shtml" % (builtins.name, os.path.extsep)))
1.15 + except viewer.ViewerError, exc:
1.16 + raise
1.17
1.18 # vim: tabstop=4 expandtab shiftwidth=4