From f1e30c1bca88b3a5b8c5a8a9481d2544fc223e0c Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Mon, 5 Feb 2024 16:54:12 +0100 Subject: [PATCH] fix path --- deefuzzer/tools/utils.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/deefuzzer/tools/utils.py b/deefuzzer/tools/utils.py index 7406710..b5728a0 100644 --- a/deefuzzer/tools/utils.py +++ b/deefuzzer/tools/utils.py @@ -84,25 +84,25 @@ def replace_all(option, repl): return option -def get_conf_dict(file): +def get_conf_dict(path): filename, ext = os.path.splitext(path) # Do the type check first, so we don't load huge files that won't be used if 'xml' in ext: - confile = open(file, 'r') + confile = open(path, 'r') data = confile.read() confile.close() return xmltodict(data, 'utf-8') elif 'yaml' in ext or 'yml' in ext: import yaml - confile = open(file, 'r') + confile = open(path, 'r') conf = yaml.safe_load(confile) return conf elif 'json' in ext: import json - confile = open(file, 'r') + confile = open(path, 'r') data = confile.read() confile.close() return json.loads(data) -- 2.47.3