From d698af1b9d52b5c6c8d3484c5ce3c0c8ed81b980 Mon Sep 17 00:00:00 2001 From: Benedikt Reinartz Date: Sun, 7 Dec 2025 15:12:32 +0100 Subject: [PATCH] Include the probed PythonDLL value in the exception (cherry picked from commit 40a3db7276423fb89c2742ac6d93572f53312ba1) --- src/runtime/Runtime.Delegates.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/runtime/Runtime.Delegates.cs b/src/runtime/Runtime.Delegates.cs index 5a6e0507d..3ffe4315d 100644 --- a/src/runtime/Runtime.Delegates.cs +++ b/src/runtime/Runtime.Delegates.cs @@ -301,7 +301,8 @@ static Delegates() { throw new BadPythonDllException( "Runtime.PythonDLL was not set or does not point to a supported Python runtime DLL." + - " See https://github.com/pythonnet/pythonnet#embedding-python-in-net", + " See https://github.com/pythonnet/pythonnet#embedding-python-in-net." + + $" Value of PythonDLL: {PythonDLL ?? "null"}", e); } }