config parser -help

Murali kumar murali.au at gmail.com
Fri Apr 3 11:45:07 CEST 2009


hi all,

i want to all my configuration file names in current/user/home directory..

for that i came across following function in configparser class..
Is it must to specify file names? or only directories enough..
if there anyway to read conf filenames in current/user directory...

config.read(['site.cfg', os.path.expanduser('~/.myapp.cfg')])
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20090403/42ae8ea1/attachment.html>


More information about the Python-list mailing list