Retrieve ext. variables in python program
Marc 'BlackJack' Rintsch
bj_666 at gmx.net
Wed Jul 19 17:16:17 EDT 2006
More information about the Python-list mailing list
Wed Jul 19 17:16:17 EDT 2006
- Previous message (by thread): Retrieve ext. variables in python program
- Next message (by thread): Retrieve ext. variables in python program
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
In <1153338740.544977.90000 at m79g2000cwm.googlegroups.com>, 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
- Previous message (by thread): Retrieve ext. variables in python program
- Next message (by thread): Retrieve ext. variables in python program
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list