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)
|
# 4. Common install paths (cross-platform fallback)
|
||||||
if system == "windows":
|
if system == "windows":
|
||||||
common = [
|
common: list[str] = []
|
||||||
f"C:/Xilinx/Vitis/2023.2/bin/{exec_name}.exe",
|
for sfx in (".bat", ".exe"):
|
||||||
f"C:/Xilinx/Vivado/2023.2/bin/{exec_name}.exe",
|
for ver in ("2023.2", "2022.2"):
|
||||||
f"C:/Xilinx/Vitis/2022.2/bin/{exec_name}.exe",
|
for prod in ("Vitis", "Vivado"):
|
||||||
f"C:/Xilinx/Vivado/2022.2/bin/{exec_name}.exe",
|
common.append(f"C:/Xilinx/{prod}/{ver}/bin/{exec_name}{sfx}")
|
||||||
]
|
|
||||||
else:
|
else:
|
||||||
common = [
|
common = [
|
||||||
f"/data/xilinx/Vitis/2023.2/bin/{exec_name}",
|
f"/data/xilinx/Vitis/2023.2/bin/{exec_name}",
|
||||||
|
|||||||
Reference in New Issue
Block a user