Updated Python I2P version 0.91 by sunshine
This commit is contained in:
18
apps/sam/python/doc/epydoc/calldoc.py
Normal file
18
apps/sam/python/doc/epydoc/calldoc.py
Normal file
@ -0,0 +1,18 @@
|
||||
#!/usr/local/bin/python
|
||||
|
||||
#
|
||||
# Call the command line interface for Epydoc.
|
||||
#
|
||||
|
||||
# We have to do some path magic to prevent Python from getting
|
||||
# confused about the difference between this epydoc module, and the
|
||||
# real epydoc package. So sys.path[0], which contains the directory
|
||||
# of the script.
|
||||
import sys, os.path
|
||||
script_path = os.path.abspath(sys.path[0])
|
||||
sys.path = [p for p in sys.path if
|
||||
os.path.abspath(p) != script_path]
|
||||
|
||||
from epydoc.cli import cli
|
||||
cli()
|
||||
|
35
apps/sam/python/doc/epydoc/makedoc.py
Normal file
35
apps/sam/python/doc/epydoc/makedoc.py
Normal file
@ -0,0 +1,35 @@
|
||||
#! /usr/bin/env python
|
||||
|
||||
"""
|
||||
Make epydoc HTML documentation in the 'html' subdirectory.
|
||||
"""
|
||||
|
||||
import epydoc as epydoc_
|
||||
import inspect
|
||||
import os, sys
|
||||
|
||||
def epydoc(args):
|
||||
"""Run epydoc (command line) with given argument string."""
|
||||
os.system('python calldoc.py ' + args)
|
||||
|
||||
def makedoc():
|
||||
"""Make all epydoc HTML documentation for Python I2P library."""
|
||||
modlist = [
|
||||
'i2p',
|
||||
'i2p.eep',
|
||||
'i2p.tunnel',
|
||||
'i2p.router',
|
||||
'i2p.socket',
|
||||
'i2p.select',
|
||||
'i2p.samclasses',
|
||||
'i2p.CGIHTTPServer',
|
||||
'i2p.SimpleHTTPServer',
|
||||
'i2p.BaseHTTPServer',
|
||||
'i2p.SocketServer',
|
||||
'i2p.pylib'
|
||||
]
|
||||
modlist.reverse()
|
||||
epydoc('--html ' + ' '.join(modlist))
|
||||
|
||||
if __name__ == '__main__':
|
||||
makedoc()
|
Reference in New Issue
Block a user