diff --git a/docs/user/FlowVariables.md b/docs/user/FlowVariables.md index a6785dbfa4..992aae1708 100644 --- a/docs/user/FlowVariables.md +++ b/docs/user/FlowVariables.md @@ -319,4 +319,4 @@ configuration file. - [SYNTH_ARGS](#SYNTH_ARGS) - [TAP_CELL_NAME](#TAP_CELL_NAME) - [TECH_LEF](#TECH_LEF) -- [USE_FILL](#USE_FILL) +- [USE_FILL](#USE_FILL) \ No newline at end of file diff --git a/tools/AutoTuner/src/autotuner/distributed.py b/tools/AutoTuner/src/autotuner/distributed.py index 1c1763faa4..c02da854b9 100644 --- a/tools/AutoTuner/src/autotuner/distributed.py +++ b/tools/AutoTuner/src/autotuner/distributed.py @@ -366,21 +366,16 @@ def parse_tunable_variables(): TODO: Tests. """ cur_path = os.path.dirname(os.path.realpath(__file__)) - vars_path = os.path.join(cur_path, "../../../../flow/scripts") - initial_path = os.path.abspath(os.getcwd()) + vars_path = os.path.join(cur_path, "../../../../flow/scripts/variables.yaml") # Read from variables.yaml and get variables with tunable = 1 - os.chdir(vars_path) - with open("variables.yaml") as file: + with open(vars_path) as file: try: result = yaml.safe_load(file) except yaml.YAMLError as exc: 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} - - # Return to initial path - os.chdir(initial_path) return variables