[Compactpath-commit] SF.net SVN: compactpath: [28] trunk/src/compactpath/scripts/gen_docs.py
Status: Beta
Brought to you by:
jurner
|
From: <ju...@us...> - 2008-06-24 13:40:33
|
Revision: 28
http://compactpath.svn.sourceforge.net/compactpath/?rev=28&view=rev
Author: jurner
Date: 2008-06-24 06:40:18 -0700 (Tue, 24 Jun 2008)
Log Message:
-----------
beautified user feedback
Modified Paths:
--------------
trunk/src/compactpath/scripts/gen_docs.py
Modified: trunk/src/compactpath/scripts/gen_docs.py
===================================================================
--- trunk/src/compactpath/scripts/gen_docs.py 2008-06-19 08:01:27 UTC (rev 27)
+++ trunk/src/compactpath/scripts/gen_docs.py 2008-06-24 13:40:18 UTC (rev 28)
@@ -31,13 +31,20 @@
"""enshures epydoc docdir exists"""
save_create_dir(EPYDOC_DIR)
+def pprint(msg, *params):
+ """helper to pprint user feedback"""
+ print '>' + msg
+ for i in params:
+ print ' ' + i
+
#**************************************************************************
#
#**************************************************************************
def main():
""""""
+ pprint('dumping docs to:', EPYDOC_DIR)
enshure_doc_dir_dxists()
- print 'calling epydoc'
+ pprint('calling epydoc')
sys.argv = [
__file__,
'-v',
@@ -47,11 +54,11 @@
PACKAGE_DIR,
]
cli.cli()
- print 'ok'
-
+
# create a redirect to 'epydoc/index.html'
- print 'creating redirect'
- fp = open(os.path.join(DOC_DIR, 'index.html'), 'w')
+ html_index = os.path.join(DOC_DIR, 'index.html')
+ pprint('creating redirect:', html_index)
+ fp = open(html_index, 'w')
try:
fp.write('''<html>
<head>
@@ -62,8 +69,7 @@
finally:
fp.close()
- print 'ok'
- print 'done'
+ pprint('done')
#**************************************************************************************
#
@@ -73,6 +79,3 @@
if wantsHelp not in ('-?', '--help'):
sys.exit(main())
print __doc__
-
-
-
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|