summaryrefslogtreecommitdiffstats
path: root/Demo/ibrowse/ib.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1995-04-10 11:47:11 (GMT)
committerGuido van Rossum <guido@python.org>1995-04-10 11:47:11 (GMT)
commit5dd52d37ebc7acfd165bd8cde38e11e70a6a6252 (patch)
tree0d9370391f448f3d9be1523f05bfd81a66171e00 /Demo/ibrowse/ib.py
parent5b98ac5b14b7f01d24aecd3d371ed899ed3f671c (diff)
downloadcpython-5dd52d37ebc7acfd165bd8cde38e11e70a6a6252.zip
cpython-5dd52d37ebc7acfd165bd8cde38e11e70a6a6252.tar.gz
cpython-5dd52d37ebc7acfd165bd8cde38e11e70a6a6252.tar.bz2
commit -- why not
Diffstat (limited to 'Demo/ibrowse/ib.py')
-rwxr-xr-xDemo/ibrowse/ib.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/Demo/ibrowse/ib.py b/Demo/ibrowse/ib.py
new file mode 100755
index 0000000..588270e
--- /dev/null
+++ b/Demo/ibrowse/ib.py
@@ -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()