cpython/Demo/pdist/mac.py

25 lines
467 B
Python
Raw Normal View History

1996-07-30 16:05:56 -03:00
import sys
import rcvs
def raw_input(prompt):
sys.stdout.write(prompt)
sys.stdout.flush()
return sys.stdin.readline()
1996-07-30 16:05:56 -03:00
def main():
while 1:
try:
line = input('$ ')
except EOFError:
break
words = line.split()
if not words:
continue
if words[0] != 'rcvs':
words.insert(0, 'rcvs')
sys.argv = words
rcvs.main()
1996-07-30 16:05:56 -03:00
if __name__ == '__main__':
main()