summaryrefslogtreecommitdiffstats
path: root/Demo/pdist/mac.py
blob: beb77ec6f994e7ef74c4d70fd43106de9680e841 (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 = 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()