in smdebug_rulesconfig/debugger_rules/_utils.py [0:0]
def _get_rule_config(rule_name):
rule_config = None
config_file_path = os.path.dirname(os.path.abspath(__file__)) + "/" + RULE_CONFIG_FILE
if os.path.exists(config_file_path):
with open(config_file_path) as json_data:
configs = json.load(json_data)
if rule_name in configs:
rule_config = configs[rule_name]
return rule_config