Questions tagged [configobj]

ConfigObj is a python module for configuration file reading, writing and validation, with validation being the primary feature that distinguishes it from the built-in configparser module.

configobj is a Python module to easily write values to a file and read them back later for use. The common imports are from configobj import ConfigObj and import configobj.

51 questions
0
votes
3 answers

Writing to an existing file without overwriting/erasing

My goal is quite simple, but I couldn't find it on the guide for configobj. When I run my code I want it to write to a file but not erase what there's in the file already. I would like everytime I run this it should write underneath what's already…
Frederik
  • 409
  • 1
  • 5
  • 19
0
votes
1 answer

Printing ConfigObj

I have very simple problem I want to print everything that's inside session.ini But it doesn't let me the output is: >> {} Does somebody have a trick how to print everything inside the session.ini inside: session.ini [Session 1] Data =…
Frederik
  • 409
  • 1
  • 5
  • 19
0
votes
2 answers

TypeError: coercing to Unicode: need string or buffer, tuple found

I'm trying to make my app run files with Unicode characters, but for this, you must decode before them. For this I am using ConfigObj.py. But when I run the app, get the following error: Traceback (most recent call last):    File "GCW_Player.py",…
bbruno5
  • 111
  • 1
  • 4
  • 9
0
votes
2 answers

ConfigObj and absolute paths

i'm having a bit of a path issue when using configobj for python. i'm wondering if there's a way to not use an absolute path in my helper file. For example, instead of: self.config = ConfigObj('/home/thisuser/project/common/config.cfg') i want to…
aj000
  • 3
  • 2
0
votes
1 answer

configobj multiple configurations

I am a new programmer working on a program that contains a list of recipes which can be searched and then generate menu from a selected commonality. My initial thought has been to use a configuration file to store the data (I am using configobj for…
Revots
  • 27
  • 6
-1
votes
1 answer

Only last value displays in tkinter listbox

I iterate through either key or values from my config.ini file and insert it into my listbox, however, only the last value is inserted. My config files has two sections [TEST1] and [TEST2]. Only TEST2 shows in the listbox, printing the keys however,…
Sun B
  • 25
  • 1
  • 7
1 2 3
4