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 list of rules out.[详细]
2023-04-08 15:03 分类:问答Where to put a configuration file in Python?
In development mode, I have the following directory tree : my_project/ setup.py my_project/ __init__.py[详细]
2023-04-08 11:53 分类:问答How to convert a string to tuple
I like to convert in a Python script the following string: mystring=\'(5,650),(235,650),(465,650),(695,650)\'[详细]
2023-04-07 08:44 分类:问答Getting a list from a config file with ConfigParser
I have something like this in my config file (a config option that contains a list of strings): [filters][详细]
2023-03-21 20:34 分类:问答How can I set default values for SafeConfigParser?
I have a config file as follows: [job]开发者_如何学Go mailto=bob logFile=blahDeBlah.txt I want to read the options using SafeConfigParser:[详细]
2023-03-08 09:48 分类:问答Unknown quantity of items in configuration files using ConfigParser
To be honest I\'m writing this question to try to clear up my mind in the process. If I can\'t figure it out, I\'ll post it (which happened). I would appreciate if someone could shed some light on how[详细]
2023-03-05 08:20 分类:问答Update field with ConfigParser -Python-
I thought that the set method of ConfigParser module updates the field given, but, it seems that the change remains only in memory and 开发者_开发技巧doesn\'t get into the config file. Is it a normal[详细]
2023-02-16 16:29 分类:问答How to use variables already defined in ConfigParser
I\'m using Config开发者_运维百科Parser in Python config.ini is [general] name: my_name base_dir: /home/myhome/exp[详细]
2023-02-11 00:50 分类:问答Function statement of CfgParserbreaking python script netbeans sikuli
For a reason I don\'t understand the following line causes my sikuli/python script to break.I suspect this is because my code to read a config file is buggy.I fail to see why, what am I misssing.[详细]
2023-02-05 18:47 分类:问答How to evaluate simple math expressions in config files
I would like to use a configuration file with some simple math expressions like adding or substracting.[详细]
2023-02-03 20:19 分类:问答