Staging
v0.5.1
https://github.com/python/cpython
Revision 945c632dffda0353ab4e78ebae5deb6dfa79eb2a authored by Martin v. Löwis on 14 June 2008, 11:51:54 UTC, committed by Martin v. Löwis on 14 June 2008, 11:51:54 UTC
1 parent 6807120
Raw File
Tip revision: 945c632dffda0353ab4e78ebae5deb6dfa79eb2a authored by Martin v. Löwis on 14 June 2008, 11:51:54 UTC
Set eol-style to CRLF for all batch files.
Tip revision: 945c632
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