Skip to content

Commit

Permalink
fix pathlib conversion (VUnit#632)
Browse files Browse the repository at this point in the history
  • Loading branch information
eine committed Mar 7, 2020
1 parent bcdabe4 commit bb53c03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vunit/sim_if/modelsim.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def find_prefix_from_path(cls):
"""

def has_modelsim_ini(path):
return os.path.isfile(str(Path(path) / "modelsim.ini"))
return os.path.isfile(str(Path(path).parent / "modelsim.ini"))

return cls.find_toolchain(["vsim"], constraints=[has_modelsim_ini])

Expand Down

0 comments on commit bb53c03

Please sign in to comment.