Mike Meyer <[EMAIL PROTECTED]> wrote: > "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes: > > > So how to overwrite the config file directly in script.py instead of > > running script.py with two params? > > Don't overwrite the file directly. Save a copy, then rename it. That
See module fileinput in the standard library, it does this for you automatically when used in the right way -- much better than rolling your own and having to debug it and maintain it forever! Alex -- http://mail.python.org/mailman/listinfo/python-list