aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/pyunit/libghdl
diff options
context:
space:
mode:
authorPatrick Lehmann <Patrick.Lehmann@plc2.de>2020-12-29 00:26:19 +0100
committerPatrick Lehmann <Patrick.Lehmann@plc2.de>2020-12-29 00:26:19 +0100
commit9e991938ae1f0ad188ce33f73c51b1c9d4354589 (patch)
tree07ed9a95592f0627d2784c9c77a3be94fa471094 /testsuite/pyunit/libghdl
parent3e6c7275d2c48e4aa56a6dc1cec536250c1e95fd (diff)
downloadghdl-9e991938ae1f0ad188ce33f73c51b1c9d4354589.tar.gz
ghdl-9e991938ae1f0ad188ce33f73c51b1c9d4354589.tar.bz2
ghdl-9e991938ae1f0ad188ce33f73c51b1c9d4354589.zip
Made path to VHDL files relative to the testcase.
Diffstat (limited to 'testsuite/pyunit/libghdl')
-rw-r--r--testsuite/pyunit/libghdl/Initialize.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/testsuite/pyunit/libghdl/Initialize.py b/testsuite/pyunit/libghdl/Initialize.py
index fb7196e7c..90692760c 100644
--- a/testsuite/pyunit/libghdl/Initialize.py
+++ b/testsuite/pyunit/libghdl/Initialize.py
@@ -16,7 +16,8 @@ if __name__ == "__main__":
class Instantiate(TestCase):
- _filename : Path = Path("testsuite/pyunit/SimpleEntity.vhdl")
+ _root = Path(__file__).resolve().parent.parent
+ _filename : Path = _root / "SimpleEntity.vhdl"
@staticmethod
def getIdentifier(node):