summaryrefslogtreecommitdiffstats
path: root/Demo/pdist/mac.py
blob: 61cff09b9fe5eded4f3456f23499964455a83532 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import sys
import rcvs

def raw_input(prompt):
    sys.stdout.write(prompt)
    sys.stdout.flush()
    return sys.stdin.readline()

def main():
    while 1:
        try:
            line = raw_input('$ ')
        except EOFError:
            break
        words = line.split()
        if not words:
            continue
        if words[0] != 'rcvs':
            words.insert(0, 'rcvs')
        sys.argv = words
        rcvs.main()

if __name__ == '__main__':
    main()