Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: 080daa04f1636224f2b0aeb34de80482a6d2496b authored by cvs2svn on 11 April 2000, 17:11:09 UTC
This commit was manufactured by cvs2svn to create tag 'r16a2'.
Tip revision: 080daa0
ib.py
#! /usr/bin/env python

# Call ibrowse (the info file browser) under UNIX.

import sys
import ibrowse

if len(sys.argv) > 1:
	file = sys.argv[1]
	if len(sys.argv) > 2:
		if len(sys.argv) > 3:
			sys.stdout = sys.stderr
			print 'usage:', sys.argv[0], '[file [node]]'
			sys.exit(2)
		else:
			node = sys.argv[2]
	else:
		node = ''
	ibrowse.start('(' + file + ')' + node)
else:
	ibrowse.main()
back to top