Hi,
This is my first post to the list, I hope somebody can help me with this
problem. Apologies if it has been posted before but I have been internet
searching to no avail.
What I am trying to do is provide a simple method for a user to change a
config file, for a test suite.
The config file
Sybren Stuvel wrote:
My opinion: let the user edit the configuration file using his/her
favourite text editor. Someone configuring a test suite should
certainly be able to edit a text file.
Sybren
While I agree in principal to your opinion, the idea is that an absolute
moron
would be able
David Wahler wrote:
With the disclaimer that, as others have said, this may not be the best
user-interface choice:
import readline
readline.set_startup_hook(lambda: readline.insert_text(old_value))
try:
new_value = raw_input()
finally:
readline.set_startup_hook(None)
Note that,