OpenQuizz
Une application de gestion des contenus pédagogiques
|
Data Structures | |
class | ConfigHandler |
class | ConfigMetadataHandler |
class | ConfigOptionsHandler |
class | StaticModule |
Functions | |
def | patch_path (path) |
def | read_configuration (filepath, find_others=False, ignore_option_errors=False) |
def | configuration_to_dict (handlers) |
def | parse_configuration (distribution, command_options, ignore_option_errors=False) |
def setuptools.config.configuration_to_dict | ( | handlers | ) |
Returns configuration data gathered by given handlers as a dict. :param list[ConfigHandler] handlers: Handlers list, usually from parse_configuration() :rtype: dict
def setuptools.config.parse_configuration | ( | distribution, | |
command_options, | |||
ignore_option_errors = False |
|||
) |
Performs additional parsing of configuration options for a distribution. Returns a list of used option handlers. :param Distribution distribution: :param dict command_options: :param bool ignore_option_errors: Whether to silently ignore options, values of which could not be resolved (e.g. due to exceptions in directives such as file:, attr:, etc.). If False exceptions are propagated as expected. :rtype: list
def setuptools.config.patch_path | ( | path | ) |
Add path to front of sys.path for the duration of the context.
def setuptools.config.read_configuration | ( | filepath, | |
find_others = False , |
|||
ignore_option_errors = False |
|||
) |
Read given configuration file and returns options from it as a dict. :param str|unicode filepath: Path to configuration file to get options from. :param bool find_others: Whether to search for other configuration files which could be on in various places. :param bool ignore_option_errors: Whether to silently ignore options, values of which could not be resolved (e.g. due to exceptions in directives such as file:, attr:, etc.). If False exceptions are propagated as expected. :rtype: dict