ganesanb | 32d5542 | 2022-08-04 08:18:27 +0000 | [diff] [blame] | 1 | #!/usr/bin/env python3 -u |
| 2 | |
| 3 | r""" |
| 4 | Define methods to import platform specific files. |
| 5 | """ |
| 6 | |
| 7 | import sys |
| 8 | from robot.libraries.BuiltIn import BuiltIn |
| 9 | import imp |
| 10 | import string |
| 11 | import importlib |
| 12 | |
| 13 | |
| 14 | def get_service_restart_policy_services(module_name): |
| 15 | r""" |
| 16 | Gets the service list that gives in the respective platform specific file. |
| 17 | """ |
| 18 | m = importlib.import_module(module_name) |
| 19 | service_restart_policy_services = dict.copy(m.SERVICES) |
| 20 | |
| 21 | return service_restart_policy_services |