about summary refs log tree commit diff stats
path: root/cleave/Readme
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2017-06-23 23:14:48 -0700
committerKartik K. Agaram <vc@akkartik.com>2017-06-23 23:17:52 -0700
commit5cac8865dd280fda821a3eb98ed38522500395be (patch)
tree1ae476a4f1e365ca54f59e6564619b785f8eb130 /cleave/Readme
parentbb97f580fb1c769ba0cc362d1c751e69377050a8 (diff)
downloadmu-5cac8865dd280fda821a3eb98ed38522500395be.tar.gz
3945
Fix a discrepancy between fake screen and real terminal behavior. (See
recent commits.)
Diffstat (limited to 'cleave/Readme')
0 files changed, 0 insertions, 0 deletions
                            









                                                              




                                      




                                                                     
#!/usr/bin/python3
"""Generate pydoc documentation and move it to the doc directory.
THIS WILL DELETE ALL EXISTING HTML FILES IN THAT DIRECTORY, so don't
store important content there."""

import pydoc, os, sys
if __name__ == '__main__':
	docdir = 'doc/pydoc'
	os.chdir(sys.path[0])
	try: os.mkdir(docdir)
	except: pass


	for fname in os.listdir(docdir):
		if fname.endswith('.html'):
			os.remove(os.path.join(docdir, fname))

	pydoc.writedocs('.')
	pydoc.writedoc('curses')
	pydoc.writedoc('curses.ascii')
	pydoc.writedoc('os')
	pydoc.writedoc('os.path')
	pydoc.writedoc('sys')

	for fname in os.listdir('.'):
		if fname.endswith('.html'):
			os.rename(fname, os.path.join(docdir, fname))