X Tutup
Skip to content

Commit 7b34278

Browse files
sam-enoughtonyroberts
authored andcommitted
Amended recent change to address issue pythonnet#193
Fixes pythonnet#193
1 parent c9a784b commit 7b34278

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

setup.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,7 @@ def _find_msbuild_tool(tool="msbuild.exe", use_windows_sdk=False):
3737
if use_windows_sdk:
3838
sdks_root = r"SOFTWARE\Microsoft\Microsoft SDKs\Windows"
3939
kits_root = r"SOFTWARE\Microsoft\Windows Kits\Installed Roots"
40-
kits_suffix = "bin"
41-
if PLATFORM == "x64":
42-
kits_suffix += r"\x64"
40+
kits_suffix = os.path.join("bin", PLATFORM)
4341
keys_to_check.extend([
4442
("Windows Kit 10.0", kits_root, "KitsRoot10", kits_suffix),
4543
("Windows Kit 8.1", kits_root, "KitsRoot81", kits_suffix),

0 commit comments

Comments
 (0)
X Tutup