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