Re: config files in python

2008-05-06 Thread M.-A. Lemburg
On 2008-05-06 11:07, Jorge Vargas wrote: On Tue, May 6, 2008 at 4:33 AM, M.-A. Lemburg <[EMAIL PROTECTED]> wrote: On 2008-05-06 01:16, Matimus wrote: On May 4, 11:35 pm, sandipm <[EMAIL PROTECTED]> wrote: Hi, In my application, I have some configurable information which is used by different

Re: config files in python

2008-05-06 Thread Jorge Vargas
On Tue, May 6, 2008 at 4:33 AM, M.-A. Lemburg <[EMAIL PROTECTED]> wrote: > > On 2008-05-06 01:16, Matimus wrote: > > > On May 4, 11:35 pm, sandipm <[EMAIL PROTECTED]> wrote: > > > > > Hi, > > > In my application, I have some configurable information which is used > > > by different processes. curr

Re: config files in python

2008-05-06 Thread M.-A. Lemburg
On 2008-05-06 01:16, Matimus wrote: On May 4, 11:35 pm, sandipm <[EMAIL PROTECTED]> wrote: Hi, In my application, I have some configurable information which is used by different processes. currently I have stored configration in a conf.py file as name=value pairs, and I am importing conf.py fil

Re: config files in python

2008-05-05 Thread Jorge Vargas
On Tue, May 6, 2008 at 2:00 AM, sandipm <[EMAIL PROTECTED]> wrote: > > here I would like to have python file which read conf from text file > and load those params in current process space. > so only importing that python file should read up the conf file and > load the current process with co

Re: config files in python

2008-05-05 Thread sandipm
Thanks for various useful suggestions. actually right now I am using conf files only in psp handler of mod_python/apache but I have other processes which might use same config files. One way is I can put conf related data directly in database and database handling module can directly pickup values

Re: config files in python

2008-05-05 Thread George Sakkis
On May 5, 6:57 pm, Matimus <[EMAIL PROTECTED]> wrote: > On May 5, 10:22 am, Francesco Bochicchio <[EMAIL PROTECTED]> wrote: > > > > > On Mon, 05 May 2008 00:35:51 -0700, sandipm wrote: > > > Hi, > > > In my application, I have some configurable information which is used > > > by different processe

Re: config files in python

2008-05-05 Thread Matimus
On May 4, 11:35 pm, sandipm <[EMAIL PROTECTED]> wrote: > Hi, > In my application, I have some configurable information which is used > by different processes. currently I have stored configration in a > conf.py file as name=value pairs, and I am importing conf.py file to > use this variable. it wo

Re: config files in python

2008-05-05 Thread Matimus
On May 5, 10:22 am, Francesco Bochicchio <[EMAIL PROTECTED]> wrote: > On Mon, 05 May 2008 00:35:51 -0700, sandipm wrote: > > Hi, > > In my application, I have some configurable information which is used > > by different processes. currently I have stored configration in a > > conf.py file as name=

Re: config files in python

2008-05-05 Thread Francesco Bochicchio
On Mon, 05 May 2008 00:35:51 -0700, sandipm wrote: > Hi, > In my application, I have some configurable information which is used > by different processes. currently I have stored configration in a > conf.py file as name=value pairs, and I am importing conf.py file to > use this variable. it works

Re: config files in python

2008-05-05 Thread Michael Ströder
sandipm wrote: In my application, I have some configurable information which is used by different processes. currently I have stored configration in a conf.py file as name=value pairs, and I am importing conf.py file to use this variable. it works well import conf print conf.SomeVariable but i

config files in python

2008-05-04 Thread sandipm
Hi, In my application, I have some configurable information which is used by different processes. currently I have stored configration in a conf.py file as name=value pairs, and I am importing conf.py file to use this variable. it works well import conf print conf.SomeVariable but if I need to c