Utilities - vcspull.util

Utility functions for vcspull.

vcspull.util.get_config_dir()
function[source]

Return vcspull configuration directory.

VCSPULL_CONFIGDIR environmental variable has precedence if set. We also evaluate XDG default directory from XDG_CONFIG_HOME environmental variable if set or its default. Then the old default ~/.vcspull is returned for compatibility.

Returns:

absolute path to vcspull config directory

Return type:

str

vcspull.util.update_dict(d, u)
function[source]

Return updated dict.

Parameters:
Returns:

Updated dictionary

Return type:

dict