Message 44965 - Python tracker (original) (raw)
Logged In: YES user_id=81797
I went ahead and turned this into Python code and called "execvp", passing the command arguments onto the idle call. This way there are no worries about how the shell handles $* expansion. The current CVS version results in something looking like:
#!/usr/bin/env python2.4 import os, sys os.execvp("/usr/bin/python2.4", ["/usr/bin/python2.4", "/usr/lib/python2.4/idlelib/idle.py"] + sys.argv[1:]) print "Failed to exec Idle" sys.exit(1)
(assuming default build settings)