Skip to content Skip to sidebar Skip to footer
Showing posts with the label Configparser

Reading A Fortigate Configuration File With Python

Appologies for the really long drawn out question. I am trying to read in a config file and get a l… Read more Reading A Fortigate Configuration File With Python

Configparser Not Working In Python 3.4, Nosectionerror But Works Fine In Pycharm

I worked on a Python 3.4 script in PyCharm 4.5. (repo: https://github.com/Djidiouf/bbot ) In it, I … Read more Configparser Not Working In Python 3.4, Nosectionerror But Works Fine In Pycharm

How To Use Variables Already Defined In Configparser

I'm using ConfigParser in Python config.ini is [general] name: my_name base_dir: /home/myhome/e… Read more How To Use Variables Already Defined In Configparser

Configparser With Unicode Items

my troubles with ConfigParser continue. It seems it doesn't support Unicode very well. The conf… Read more Configparser With Unicode Items

Closing File Opened By Configparser

I have the following: config = ConfigParser() config.read('connections.cfg') sections = con… Read more Closing File Opened By Configparser