Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: 189b6d85c9295e8224313c076fe5f298817cc76d authored by Barry Warsaw on 01 March 2008, 03:15:20 UTC
More copyright year and version number bumps
Tip revision: 189b6d8
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