Skip to content

Commit

Permalink
Adjusted binary paths for macOS.
Browse files Browse the repository at this point in the history
  • Loading branch information
Paebbels committed Jul 30, 2024
1 parent 793111f commit ad0eaa2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/unit/GHDL.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,15 @@
from pathlib import Path
from unittest import TestCase

from pyTooling.Platform import CurrentPlatform

from pyEDAA.CLITool.GHDL import GHDL
from . import Helper


class GHDLTestcases(TestCase, Helper):
_libraryDirectoryPath = Path(os_getenv("GHDL_PREFIX", default="/usr/lib/ghdl")).resolve()
_binaryDirectoryPath = (Path(os_getenv("GHDL_PREFIX", default="/usr/lib/ghdl")) / "../../bin").resolve()
_libraryDirectoryPath = (Path(os_getenv("GHDL_PREFIX", default="/usr/lib/ghdl" if not CurrentPlatform.IsNativeMacOS else "/opt/homebrew/lib/ghdl")) / "../").resolve()
_binaryDirectoryPath = (Path(os_getenv("GHDL_PREFIX", default="/usr/lib/ghdl" if not CurrentPlatform.IsNativeMacOS else "/opt/homebrew/lib/ghdl")) / "../../bin").resolve()


class CommonOptions(GHDLTestcases):
Expand Down

0 comments on commit ad0eaa2

Please sign in to comment.