Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build/lattice/radiant: fix uname() not prefixed by 'os.' #1767

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions litex/build/lattice/radiant.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ def build_script(self):
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(
Expand All @@ -237,7 +237,7 @@ def run_script(self, script):
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:
Expand Down