Guido van Rossum | c163ae5 | 1996-07-30 19:05:56 +0000 | [diff] [blame] | 1 | import sys |
Guido van Rossum | c163ae5 | 1996-07-30 19:05:56 +0000 | [diff] [blame] | 2 | import rcvs |
3 | |||||
Neal Norwitz | ce96f69 | 2006-03-17 06:49:51 +0000 | [diff] [blame] | 4 | def raw_input(prompt): |
5 | sys.stdout.write(prompt) | ||||
6 | sys.stdout.flush() | ||||
7 | return sys.stdin.readline() | ||||
8 | |||||
Guido van Rossum | c163ae5 | 1996-07-30 19:05:56 +0000 | [diff] [blame] | 9 | def main(): |
Tim Peters | e6ddc8b | 2004-07-18 05:56:09 +0000 | [diff] [blame] | 10 | while 1: |
11 | try: | ||||
Collin Winter | 6f2df4d | 2007-07-17 20:59:35 +0000 | [diff] [blame^] | 12 | line = input('$ ') |
Tim Peters | e6ddc8b | 2004-07-18 05:56:09 +0000 | [diff] [blame] | 13 | except EOFError: |
14 | break | ||||
Neal Norwitz | ce96f69 | 2006-03-17 06:49:51 +0000 | [diff] [blame] | 15 | words = line.split() |
Tim Peters | e6ddc8b | 2004-07-18 05:56:09 +0000 | [diff] [blame] | 16 | if not words: |
17 | continue | ||||
18 | if words[0] != 'rcvs': | ||||
19 | words.insert(0, 'rcvs') | ||||
20 | sys.argv = words | ||||
21 | rcvs.main() | ||||
Guido van Rossum | c163ae5 | 1996-07-30 19:05:56 +0000 | [diff] [blame] | 22 | |
Neal Norwitz | ce96f69 | 2006-03-17 06:49:51 +0000 | [diff] [blame] | 23 | if __name__ == '__main__': |
24 | main() |