From c1dc0b4ee3b4182f04ed6dae36c9cf7e5e20095a Mon Sep 17 00:00:00 2001 From: Jack Luar Date: Sun, 13 Oct 2024 10:47:35 +0000 Subject: [PATCH] remove os.path checks Signed-off-by: Jack Luar --- tools/AutoTuner/src/autotuner/distributed.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tools/AutoTuner/src/autotuner/distributed.py b/tools/AutoTuner/src/autotuner/distributed.py index a10c188eb6..96e7bebed3 100644 --- a/tools/AutoTuner/src/autotuner/distributed.py +++ b/tools/AutoTuner/src/autotuner/distributed.py @@ -371,14 +371,11 @@ def parse_tunable_variables(): # Read from variables.yaml and get variables with tunable = 1 os.chdir(vars_path) - if not os.path.exists("variables.yaml"): - print("[ERROR TUN-0018] variables.yaml not found.") - sys.exit(1) with open("variables.yaml") as file: try: result = yaml.safe_load(file) except yaml.YAMLError as exc: - print("[ERROR TUN-0019] Error parsing variables.yaml.") + print("[ERROR TUN-0018] Error parsing variables.yaml.") sys.exit(1) variables = {key: 1 for key, value in result.items() if value.get("tunable") == 1}