Manage configuration
Mostly copied from vhc/libvhc/config.py
Generic error raised by the configuration sub-package
Raised when a configuration item does not exist
Raised when a configuration section does not exist
Load YAML configuration files. Skip non existing files.
Parameters: | name : string
fnames : list of strings
|
---|---|
Returns: | flist : list
|
Load standard configuration files
Parameters: | name : string
fnames : list of strings
|
---|---|
Returns: | flist : list
|
Convenience function to load the vdat configuration files.
It loads:
Parameters: | vdat_conf_fname : string
name : string
|
---|
Returns the configuration file with the specified name.
Parameters: | name : string, optional
section : string, optional
|
---|---|
Returns: | configuration object
|
Implementation of the vdat_config entry point
Files copied from the package
The files in the following subdirectories are copied too
Main function of the implementation of the vdat_config executable
Parameters: | argv : list
|
---|
Create the parser and parse the command line arguments
Parameters: | argv : list
|
---|---|
Returns: | Namespace
|
In python 3 encodes the string into bytes, in python 2 returns the input
Parameters: | str_ : string type
Returns bytes |
---|
Copy the configuration files
Parameters: | args : Namespace
|
---|
Todo
include configuration files?