config parser -help - anybody please immediately help for me...

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Fri Apr 3 09:07:40 EDT 2009


En Fri, 03 Apr 2009 08:46:17 -0300, Murali kumar <murali.au at gmail.com>  
escribió:

>> Is there anyway to read all my configuration filenames with extension
>> (.cfg)?

See the glob module
http://docs.python.org/library/glob.html

glob.glob(os.path.expanduser('~/*.cfg'))

-- 
Gabriel Genellina




More information about the Python-list mailing list