dial_core.utils.initialization module

Functions to check that python versions, libraries… used by the program are correct.

dial_core.utils.initialization.check_python_version()[source]

Check if Python version installed is correct.

Raises:SystemError – If a wrong Python version is installed.
dial_core.utils.initialization.get_arg_parser()[source]
Return type:ArgumentParser
Returns:An argument parser for this application.
dial_core.utils.initialization.initialize(args)[source]

Performs all the necessary steps before running the application. This checks python version, installed modules, initialize logging system…

Raises:
  • ImportError – If couldn’t import a necessary module.
  • SystemError – If the Python version isn’t compatible.
dial_core.utils.initialization.parse_args(sys_args)[source]

Parses the system arguments (sys.arg), returning the app configuration.

Parameters:sys_args (List) – List of arguments to parse.
Return type:Namespace
Returns:A Namespace object (simillar to a dict) with the parsed configuration