Module gnue.common.base.utils
The utils module provides some very basic although GNU Enterprise
specific utility functions.
| Function Summary |
| string
|
config_files(name)
Return a list of filenames to parse for a specific configuration
file. |
config_files(name)
Return a list of filenames to parse for a specific configuration
file.
The list contains all existing config files in the following order
of directories searched:
-
system configuration file (usually /etc/gnue/*.conf)
-
system configuration directory (usually /etc/gnue/*.d/)
-
user configuration (~/.gnue/*.conf)
-
local configuration (etc/*.conf)
-
environment variable location ($GNUE_*)
-
fixed system configuration (/etc/gnue/*.conf.fixed)
The practical use for 6. is to define configuration entries that
cannot be overwritten by normal users.
For example, if name is connections, on a standard
install on a POSIX system, the file would be searched in:
-
/etc/gnue/connections.conf
-
/etc/gnue/connections.d/*
-
~/.gnue/connections.conf
-
etc/connections.conf (from the current
directory)
-
the content of the
GNUE_CONNECTIONS environment
variable
-
/etc/gnue/connections.conf.fixed
-
- Parameters:
name -
name of the configuration file without the .conf ending
(type=string)
- Returns:
-
list of full path names of configuration files to parse
(type=string)
|