Skip to content

Commit cba6ebf

Browse files
Fix to find dotnet root on 64-bits darwin system (#37)
1 parent 1df0f23 commit cba6ebf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

clr_loader/util/find.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,10 @@ def find_dotnet_root() -> Path:
4242
prog_files = Path(prog_files)
4343
dotnet_root = prog_files / "dotnet"
4444
elif sys.platform == "darwin":
45-
dotnet_root = Path("/usr/local/share/dotnet")
45+
if sys.maxsize > 2**32: # is_64bits
46+
dotnet_root = Path("/usr/local/share/dotnet/x64")
47+
else:
48+
dotnet_root = Path("/usr/local/share/dotnet")
4649

4750
if dotnet_root is not None and dotnet_root.is_dir():
4851
return dotnet_root

0 commit comments

Comments
 (0)