In <[EMAIL PROTECTED]>, alfa1234 wrote:

> Hi Diez !!
> Thanks for the reply.. Tried a little well dokumented program:
> 
> # file: construct.ini
> retries = 10
> 
> # file: construct.py
> import cfgparse
>
> c = cfgparse.ConfigParser()
> c.add_option('retries', type='int')
> c.add_file('construct.ini')
> opts = c.parse()
> print 'Number of retries:',opts.retries
> 
> Got the following Error when trying to run code:
> [wsadmin] Traceback (innermost last):
> [wsadmin]   File "<string>", line 1, in ?
> [wsadmin] ImportError: no module named cfgparse

Well, the message is quite descriptive.  There is no module named
`cfgparse`.  Diez suggestet the `ConfigParser` modul.  You notice the
difference?

Ciao,
        Marc 'BlackJack' Rintsch
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to