En Sat, 20 Jun 2009 11:17:01 -0300, Luca <luca...@gmail.com> escribió:
I need to use a function like the raw_input to read data from user
command line, but I really like to pre-compile the choice and I'm not
able to do this. There is some other function/module I can use?
I wanna to pre-compile the raw_input input line with the current working
path.
What do you mean "pre-compile the raw_input input line"?
Maybe you're looking for this:
import os
defpath = os.getcwd()
path = raw_input("Enter path [%s]: " % defpath)
if not path: path = defpath
print "Using path=%s" % path
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list