fix: Windows common paths try .bat before .exe (Xilinx tools are .bat)
Vitis/Vivado on Windows uses .bat wrappers, not .exe. The hardcoded fallback paths in _find_executable step 4 only looked for .exe files. Also expanded to try both 2023.2 and 2022.2 + Vitis/Vivado combos.
This commit is contained in:
@@ -201,12 +201,11 @@ def _find_executable(
|
||||
|
||||
# 4. Common install paths (cross-platform fallback)
|
||||
if system == "windows":
|
||||
common = [
|
||||
f"C:/Xilinx/Vitis/2023.2/bin/{exec_name}.exe",
|
||||
f"C:/Xilinx/Vivado/2023.2/bin/{exec_name}.exe",
|
||||
f"C:/Xilinx/Vitis/2022.2/bin/{exec_name}.exe",
|
||||
f"C:/Xilinx/Vivado/2022.2/bin/{exec_name}.exe",
|
||||
]
|
||||
common: list[str] = []
|
||||
for sfx in (".bat", ".exe"):
|
||||
for ver in ("2023.2", "2022.2"):
|
||||
for prod in ("Vitis", "Vivado"):
|
||||
common.append(f"C:/Xilinx/{prod}/{ver}/bin/{exec_name}{sfx}")
|
||||
else:
|
||||
common = [
|
||||
f"/data/xilinx/Vitis/2023.2/bin/{exec_name}",
|
||||
|
||||
Reference in New Issue
Block a user