From 5e4628f1fe7506d2d18b05a87dbb1bf5e5daf8be Mon Sep 17 00:00:00 2001 From: Josuah Demangeon Date: Mon, 4 Sep 2023 19:30:29 +0200 Subject: [PATCH] build/lattice/radiant: fix uname() not prefixed by 'os.' --- litex/build/lattice/radiant.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/litex/build/lattice/radiant.py b/litex/build/lattice/radiant.py index b211e88f4..53b595d95 100644 --- a/litex/build/lattice/radiant.py +++ b/litex/build/lattice/radiant.py @@ -210,7 +210,7 @@ class LatticeRadiantToolchain(GenericToolchain): script_contents += self._yosys.get_yosys_call(target="script") + "\n" # Radiant installed on Windows, executed from WSL2 - if "microsoft-standard" in uname().release and which("pnmainc.exe") is not None: + if "microsoft-standard" in os.uname().release and which("pnmainc.exe") is not None: tool = "pnmainc.exe" script_contents += "{tool} {tcl_script}{fail_stmt}\n".format( @@ -237,7 +237,7 @@ class LatticeRadiantToolchain(GenericToolchain): tool = "radiantc" # Radiant installed on Windows, executed from WSL2 - if "microsoft-standard" in uname().release and which("pnmainc.exe") is not None: + if "microsoft-standard" in os.uname().release and which("pnmainc.exe") is not None: tool = "pnmainc.exe" if which(tool) is None: