Skip to main content

Module common

Module common 

Source
Expand description

Library-wide entry points: version query, one-shot initialisation, and the small set of path/config helpers cpdb-libs ships.

Functions§

absolute_path
Resolves path to an absolute path, expanding ~ and relative segments according to cpdb-libs’ rules.
concat_path
Concatenates two path segments (cpdb-libs convention).
concat_sep
Concatenates two strings with a separator (cpdb-libs convention).
init
Initialises cpdb-libs.
option_group
Returns the standard IPP group name for option_name, or None when the option is not in cpdb-libs’ built-in mapping.
system_config_dir
Returns the system-scope configuration directory cpdb-libs uses for shared settings.
user_config_dir
Returns the user-scope configuration directory cpdb-libs uses for persisted settings.
version
Returns the version of the linked cpdb-libs C library.