source:
trunk/essentials/dev-lang/python/Demo/pdist/mac.py@
3506
| Last change on this file since 3506 was 3225, checked in by , 19 years ago | |
|---|---|
| File size: 352 bytes | |
| Line | |
|---|---|
| 1 | import sys |
| 2 | import string |
| 3 | import rcvs |
| 4 | |
| 5 | def main(): |
| 6 | while 1: |
| 7 | try: |
| 8 | line = raw_input('$ ') |
| 9 | except EOFError: |
| 10 | break |
| 11 | words = string.split(line) |
| 12 | if not words: |
| 13 | continue |
| 14 | if words[0] != 'rcvs': |
| 15 | words.insert(0, 'rcvs') |
| 16 | sys.argv = words |
| 17 | rcvs.main() |
| 18 | |
| 19 | main() |
Note:
See TracBrowser
for help on using the repository browser.
