mirror of
https://github.com/python/cpython.git
synced 2025-08-01 15:43:13 +00:00
commit -- why not
This commit is contained in:
parent
5b98ac5b14
commit
5dd52d37eb
8 changed files with 1922 additions and 0 deletions
21
Demo/ibrowse/ib.py
Executable file
21
Demo/ibrowse/ib.py
Executable file
|
@ -0,0 +1,21 @@
|
|||
#! /usr/local/bin/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()
|
Loading…
Add table
Add a link
Reference in a new issue