ninjecto.config
¶Configuration loading module.
load_config()
:
Load Ninjecto’s default, system’s, user’s, project’s and givenninjecto.config.
load_config
(configs)¶Load Ninjecto’s default, system’s, user’s, project’s and given configuration.
The algorithm loads files in the following order:
/etc/ninjecto/config.xxx
$XDG_CONFIG_HOME/ninjecto/config.xxx
or
$HOME/.config/ninjecto/config.xxx
if
$XDG_CONFIG_HOME
is unavailable.$HOME/.ninjerc.xxx
.<gitroot>/.ninjerc.xxx
<gitroot>
is determined by ninjecto.utils.git.find_root()
.
Currently, git
is the only version control system supported.$PWD/.ninjerc.xxx
, but only if $PWD is different from the <gitroot>
(if available).