qgis_deployment_toolbelt.utils.ini_parser_with_path module

class qgis_deployment_toolbelt.utils.ini_parser_with_path.CustomConfigParser(*args: Any, **kwargs: Any)

Bases: ConfigParser

CustomConfigParser extends configparser.ConfigParser to include functionality for storing the paths of the INI files being read.

initial_file_path

path of the initial ini file from which the configurations were loaded.

Type:

str | PathLike | None

__init__(*args: Any, **kwargs: Any) None

Initialize the CustomConfigParser with the same arguments as configparser.ConfigParser.

get_initial_file_path() Path | None

Get the stored file path of the initial INI file as pathlib.Path object.

Returns:

path to the initial INI file that have been read.

Return type:

Path

read(ini_filepath: str | PathLike, *args: Any, **kwargs: Any) None

Read and parse filenames, storing the file paths.

Parameters:

ini_filepath (str | PathLike) – The paths of the INI files to be read.