diff options
author | Patrick Lehmann <Patrick.Lehmann@plc2.de> | 2021-06-30 20:32:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-30 20:32:07 +0200 |
commit | 6f9637713587c24789d1c89510e904754860c63d (patch) | |
tree | ebe46506d8114e19f13f09987339a3a0472e1f52 /testsuite/pyunit | |
parent | afae1a4ab13485d3e5d5624ca9231bc5da0ff867 (diff) | |
download | ghdl-6f9637713587c24789d1c89510e904754860c63d.tar.gz ghdl-6f9637713587c24789d1c89510e904754860c63d.tar.bz2 ghdl-6f9637713587c24789d1c89510e904754860c63d.zip |
pyGHDL: Added DLL search path for Python ≥3.8. (#1811)
* Added DLL search path for Python ≥3.8.
Let Windows CPython 64-bit execute GHDL in msys64/mingw64.
* Fix executable name of Python based on the current environment.
(cherry picked from commit 618c8149df1fa53d06cb197d65b3b10a02ae52ee)
* Removed debug code.
Diffstat (limited to 'testsuite/pyunit')
-rw-r--r-- | testsuite/pyunit/dom/Sanity.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/testsuite/pyunit/dom/Sanity.py b/testsuite/pyunit/dom/Sanity.py index dc415446b..b0177f8b3 100644 --- a/testsuite/pyunit/dom/Sanity.py +++ b/testsuite/pyunit/dom/Sanity.py @@ -32,10 +32,11 @@ # ============================================================================ from pathlib import Path from subprocess import check_call, STDOUT +from sys import executable as sys_executable from pytest import mark -from pyGHDL.dom.NonStandard import Design, Document +from pyGHDL.dom.NonStandard import Design if __name__ == "__main__": print("ERROR: you called a testcase declaration file as an executable module.") @@ -51,7 +52,7 @@ design = Design() @mark.xfail @mark.parametrize("file", [str(f.relative_to(_TESTSUITE_ROOT)) for f in _TESTSUITE_ROOT.glob("sanity/**/*.vhdl")]) def test_AllVHDLSources(file): - check_call(["python", _GHDL_ROOT / "pyGHDL/cli/DOM.py", file], stderr=STDOUT) + check_call([sys_executable, _GHDL_ROOT / "pyGHDL/cli/DOM.py", file], stderr=STDOUT) # document = Document(Path(file)) # design.Documents.append(document) |