Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: 103e32355dc2a343f2847100662220cccbf9154c authored by Barry Warsaw on 29 September 2009, 22:41:09 UTC
Bumping for 2.6.3rc1
Tip revision: 103e323
mac.py
import sys
import string
import rcvs

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

main()
back to top