(module_name)
| 20 | |
| 21 | # Function to Extract settings from config_local, config_distro etc. |
| 22 | def get_variables_from_module(module_name): |
| 23 | module = globals().get(module_name, None) |
| 24 | variables = {} |
| 25 | if module: |
| 26 | variables = {key: value for key, value in module.__dict__.items() |
| 27 | if not (key.startswith('__') or key.startswith('_')) and |
| 28 | validate_config_variable(key, value)} |
| 29 | return variables |
| 30 | |
| 31 | |
| 32 | # Function to load config_distro at custom path |
no test coverage detected