Staging
v0.5.1
https://github.com/python/cpython
Revision d666eae55a13e464ced79d2a0563700183563019 authored by Guido van Rossum on 10 December 1997, 05:50:18 UTC, committed by Guido van Rossum on 10 December 1997, 05:50:18 UTC
that doesn't have a console window attached.  stdout/stderr are lost.
This is handy though for things like grail.
1 parent 736fe5e
Raw File
Tip revision: d666eae55a13e464ced79d2a0563700183563019 authored by Guido van Rossum on 10 December 1997, 05:50:18 UTC
Adding a new project: pythonw, or WinMain.c, containing a main program
Tip revision: d666eae
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