[Python-Dev] Help command
Sat, 15 Jul 2000 20:14:30 -0500
Okay, I wrote the help command today. The transcript before was just a
Microsoft-style "Technology Preview." I'm pretty happy with the extent
to which I can pull in HTML and get lots of content from Fred's HTML
distribution immediately. The only trick is finding out where the
documentation is. I know that Unix users have a variety of installation
patterns and I have no idea if this works at all on the Macintosh.
Here's my current scheme:
pyhome=os.path.split( sys.executable )
self.docdir=os.path.join( pyhome, "doc" )
os.path.join( self.docdir, "lib" ), "index.html")
if not os.path.exists( testfile ):
raise EnvironmentError, ("Cannot find documentation directory"
+ self.docdir )
Paul Prescod - Not encumbered by corporate consensus
It's difficult to extract sense from strings, but they're the only
communication coin we can count on.