[Happydoc-checkins] CVS: HappyDoc test_happydoc.py,1.83,1.83.2.1
Brought to you by:
doughellmann,
krlosaqp
From: Doug H. <dou...@us...> - 2002-05-13 01:14:47
|
Update of /cvsroot/happydoc/HappyDoc In directory usw-pr-cvs1:/tmp/cvs-serv10733 Modified Files: Tag: dos_path_bug test_happydoc.py Log Message: Initial pass at a fix for the Win32 path problems, including simplifying the definition of the path to the output file for an objects documentation. Index: test_happydoc.py =================================================================== RCS file: /cvsroot/happydoc/HappyDoc/test_happydoc.py,v retrieving revision 1.83 retrieving revision 1.83.2.1 diff -C2 -d -r1.83 -r1.83.2.1 *** test_happydoc.py 12 May 2002 20:16:38 -0000 1.83 --- test_happydoc.py 13 May 2002 01:14:44 -0000 1.83.2.1 *************** *** 109,113 **** return ! def runHappyDoc(self, modules=(), extraArgs=(), useWebChecker=WEBCHECKER_AVAILABLE): # # Fix up output directory variable --- 109,113 ---- return ! def runHappyDoc(self, modules=(), extraArgs=(), useWebChecker=0): # # Fix up output directory variable *************** *** 178,182 **** c = webchecker.Checker() c.setflags( checkext=0, verbose=2, nonames=1 ) ! url = os.path.join(output_dir, 'index.html') c.addroot( url ) c.run() --- 178,199 ---- c = webchecker.Checker() c.setflags( checkext=0, verbose=2, nonames=1 ) ! ! # ! # Work out the output prefix, if one was specified. This is ! # used to determine the real root filename, since it will ! # also include the prefix value. ! # ! prefix = '' ! for extra_arg in extraArgs: ! try: ! name, value = extra_arg.split('=') ! except ValueError: ! pass ! else: ! if name == 'formatter_filenamePrefix': ! prefix = value ! break ! ! url = os.path.join(output_dir, '%sindex.html' % prefix) c.addroot( url ) c.run() |