Settings File Loading Class
Basic settings loader that provides easy to use functionality to load from simple
configuration files that have take the following form on every line:
- Option=Yes
 
- Number=20
 
- String=Whatever
 
- 
class settings.Settings(target_file)[source]
 
The Settings loader class provides simple functionality to load from simple configuration files.
- 
__init__(target_file)[source]
 
Initializes an instance of the Settings loader.
- 
get_index(index=None, datatype=None)[source]
 
Returns a loaded configuration setting from the Settings loader.
- Keyword arguments:
 
- index – The name of the setting that is to be loaded from the file.
 
- datatype – The datatype that is supposed to be used to represent this setting in the return value.
 
 
- 
get_indices()[source]
 
Returns all known indices. This is a list of the indices you would use in get_index().
- 
load(target_file)[source]
 
Loads a configuration file from the hard disk.