blob: 512b8ea4f14705c5665dd972ff10e25ceacb423c [file] [log] [blame]
ganesanb32d55422022-08-04 08:18:27 +00001#!/usr/bin/env python3 -u
2
3r"""
4 Define methods to import platform specific files.
5"""
6
George Keishinge635ddc2022-12-08 07:38:02 -06007import imp
George Keishinge635ddc2022-12-08 07:38:02 -06008import importlib
Patrick Williams20f38712022-12-08 06:18:26 -06009import string
10import sys
11
12from robot.libraries.BuiltIn import BuiltIn
ganesanb32d55422022-08-04 08:18:27 +000013
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