From a1a2350fe8acd4b9837401fc91129e838bab13e7 Mon Sep 17 00:00:00 2001 From: BeanCheeseBurrito Date: Sat, 26 Aug 2023 21:04:38 -0700 Subject: [PATCH] Try again --- src/Flecs.NET.Bindgen/Program.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Flecs.NET.Bindgen/Program.cs b/src/Flecs.NET.Bindgen/Program.cs index e0d0bc33..b3b75b8a 100644 --- a/src/Flecs.NET.Bindgen/Program.cs +++ b/src/Flecs.NET.Bindgen/Program.cs @@ -61,10 +61,9 @@ string GetMacOsHeaders() process.WaitForExit(); string path = process.StandardOutput.ReadToEnd(); + DirectoryInfo directoryInfo = new(path); - Console.WriteLine(path); - - if (!Directory.Exists(path)) + if (!directoryInfo.Exists) throw new DirectoryNotFoundException("Couldn't find system headers. Install XCode."); return path + "/usr/include";