[Tutor] [Q] ConfigParser

Young-Jin Lee ylee12@uiuc.edu
Wed, 16 Jan 2002 15:20:03 -0600


Hi, I'm a newbie playing with Python.
I have a problem using ConfigParser module. I created a config file in the
working directory and tried to read it, but  the following scripts gave me
nothing.

import ConfigParser
cfg = ConfigParser.ConfigParser()
cfg.read( 'test.cfg' )    # It returned None.

Why can't ConfigParser module read the config file in the same directory?

TIA.

YJ