Re: Output of pexpect

2008-09-30 Thread Karthik Gurusamy
d = fout I am not very sure if you can do the logging to two different files at the same time (ie sys.stdout as well as another file-object). I guess that's your question. The above should give you a starting point to explore. [May be give a fake file like object and intercept the write/ flush calls?] Karthik > > Thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: Newbie: splitting dictionary definition across two .py files

2006-03-31 Thread Karthik Gurusamy
_cfg import target_db as merge_db > target_db.update(merge_db) > Thanks; it works great. I also found using import inside build_cfg.py also works. #build_cfg_static.py: target_db = {} #.. other dict entry definitions #build_cfg.py: from build_cfg_static import * #.. more dict entry definitions

Re: Newbie: splitting dictionary definition across two .py files

2006-03-31 Thread Karthik Gurusamy
ant to split the dictionary contents in two files. I only have to change build_cfg.py everytime make-file changes/I use a new source tree. I'm not really worried about optimizations at this time; just want a cleaner solution to my proble

<    1   2