Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: 3d407dc564bd92b46ed00380213f545e515d6ddf authored by Barry Warsaw on 04 December 2008, 02:59:51 UTC
Prep for 2.6.1
Tip revision: 3d407dc
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