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