Skip to content

Commit

Permalink
Fix config.json processing bug (The-OpenROAD-Project#1436)
Browse files Browse the repository at this point in the history
~ Fix bug where `dir::` strings were not allowed to ascend
  • Loading branch information
donn authored Oct 18, 2022
1 parent 70a28d2 commit ddfeab5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/config/tcl.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ def process_string(value: str, state: State) -> str:
path = value[len(DIR_PREFIX) :]
full_path = os.path.join(state.design_dir, path)
full_abspath = os.path.abspath(full_path)
value = full_abspath
# print(state.design_dir, path, full_path, full_abspath, file=stderr)
if full_abspath.startswith(
state.design_dir
Expand Down

0 comments on commit ddfeab5

Please sign in to comment.