PageRenderTime 48ms CodeModel.GetById 44ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/Demo/pdist/mac.py

http://unladen-swallow.googlecode.com/
Python | 19 lines | 17 code | 2 blank | 0 comment | 4 complexity | b211a3ead4a9514e924666f88082ccfa MD5 | raw file
 1import sys
 2import string
 3import rcvs
 4
 5def 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
19main()