Skip to content

Commit

Permalink
Fix get_design_path (#1450)
Browse files Browse the repository at this point in the history
Co-authored-by: Mohamed Gaber <[email protected]>
  • Loading branch information
yihuajack and donn authored Oct 25, 2022
1 parent 63a6d02 commit 41ed003
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@


def get_design_path(design):
path = os.path.abspath(design) + "/"
path = os.path.abspath(design)
if not os.path.exists(path):
path = os.path.join(os.getcwd(), f"./designs/{design}/")
path = os.path.join(os.getcwd(), "designs", design)
if os.path.exists(path):
return path
else:
Expand Down

0 comments on commit 41ed003

Please sign in to comment.