Re: Cannot get past this string related issue

2011-04-26 Thread Oltmans
On Apr 26, 7:39 pm, Thomas Rachel wrote: > Am 26.04.2011 15:48, schrieb Oltmans: > > > > > > > > > > > Following doesn't work > > > config = ConfigParser.ConfigParser() > > config.read('configs.txt') > > server_info = config.get("DB_INFO","server") > > db = config.get("DB_INFO","database") > > use

Re: Cannot get past this string related issue

2011-04-26 Thread Thomas Rachel
Am 26.04.2011 15:48, schrieb Oltmans: Following doesn't work config = ConfigParser.ConfigParser() config.read('configs.txt') server_info = config.get("DB_INFO","server") db = config.get("DB_INFO","database") username = config.get("DB_INFO","user") pwd = config.get("DB_INFO","password") print s

Re: Cannot get past this string related issue

2011-04-26 Thread Tim Golden
On 26/04/2011 14:48, Oltmans wrote: Greetings, I hope you're doing well. I'm stuck in a strange issue, most likely due to my own ignorance. I'm reading a config file using ConfigParser module and passing database related info to _mssql. [ ... ] Config file looks like following [DB_INFO] serv

Cannot get past this string related issue

2011-04-26 Thread Oltmans
Greetings, I hope you're doing well. I'm stuck in a strange issue, most likely due to my own ignorance. I'm reading a config file using ConfigParser module and passing database related info to _mssql. Following doesn't work config = ConfigParser.ConfigParser() config.read('configs.txt') server_in