aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/pyunit/libghdl/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/pyunit/libghdl/__init__.py')
-rw-r--r--testsuite/pyunit/libghdl/__init__.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/testsuite/pyunit/libghdl/__init__.py b/testsuite/pyunit/libghdl/__init__.py
index 24ce9e704..4aeab3ec3 100644
--- a/testsuite/pyunit/libghdl/__init__.py
+++ b/testsuite/pyunit/libghdl/__init__.py
@@ -1,6 +1,9 @@
from unittest import TestSuite
-from testsuite.pyunit.libghdl import Initialize
+try:
+ from testsuite.pyunit.libghdl import Initialize
+except ModuleNotFoundError:
+ from pyunit.libghdl import Initialize
def load_tests(loader, testCases, pattern):
suite = TestSuite()