From 3f0c5d6260e7328c6819a3369d148807460df335 Mon Sep 17 00:00:00 2001 From: Dong-Geon Lee Date: Sun, 2 Oct 2022 22:52:03 +0900 Subject: [PATCH] Fix to find dotnet root on 64-bits darwin system --- clr_loader/util/find.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/clr_loader/util/find.py b/clr_loader/util/find.py index daad769..c163240 100644 --- a/clr_loader/util/find.py +++ b/clr_loader/util/find.py @@ -42,7 +42,10 @@ def find_dotnet_root() -> Path: prog_files = Path(prog_files) dotnet_root = prog_files / "dotnet" elif sys.platform == "darwin": - dotnet_root = Path("/usr/local/share/dotnet") + if sys.maxsize > 2**32: # is_64bits + dotnet_root = Path("/usr/local/share/dotnet/x64") + else: + dotnet_root = Path("/usr/local/share/dotnet") if dotnet_root is not None and dotnet_root.is_dir(): return dotnet_root